#!/bin/bash
echo hello world
exit 0
I have been reading around on your forums and I am unable to get a clear instructions in how to get PRTG to interpret bash scripts properly. I keep getting the following error:
"Response not wellformed (PE132)"
I want the status for the senser to return an ok status to PRTG when the script is done running.
Can you provide some insight on what I am doing wrong?
Article Comments
Hi,
a detailed example of a SSH script running with the SSH Script Sensor can be found in this article. Basically the output format has to look like
returncode:value:message
which would make your script look like
#!/bin/bash
echo "0:1:hello world"
Where 0 is the return code, 1 can be any float or integer value and "hello world" represents the message you want to give back.
Best regards
Apr, 2013 - Permalink
Hi,
a detailed example of a SSH script running with the SSH Script Sensor can be found in this article. Basically the output format has to look like
which would make your script look like
Where 0 is the return code, 1 can be any float or integer value and "hello world" represents the message you want to give back.
Best regards
Apr, 2013 - Permalink