Via a PHP script I check to see if replication between 2 MySQL servers is running. If it is not, I return a value of 1.
I can add a notification for value change, but I cannot set the sensor to down. As such, the notification options I have are limited. I have no escalation options for example.
Is there any way I can set a sensor to down?
Hmm.. Maybe return a http 500? Let's see...
Jup that works :)
So: If you write custom scripts to check if something is wrong and rely on numeric results, throw the error to down by changing the http header. That will change the state of the trigger and gives you the option to use the more advanced notification options.
Article Comments
Hi Thomas,
Apart from setting limits in the Channels tab, it is also possible to have your script return an exit code to PRTG that sets the sensor into an error (or warning) state.
See the /api.htm page of your PRTG server for more details.
Regards,
Oct, 2011 - Permalink
Dear Thomas,
when checking numerical results, you can also use the Error/Warning-Limits in its Channel Settings to change a sensors state according to its result.
best regards.
Oct, 2011 - Permalink