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.
Add comment