I am monitoring a network interface that is normally down, I need to be alerted when the interface goes UP.
I was pointed to the negate plugin which sounds like it would do exactly what I need, except it does not seem to work with the check_ping_interface plugin.
If the HOST is up and reachable the negate plugin reverses the result properly it changes the result from OK to CRITICAL, however if the HOST is unreachable the negate plugin fails.
Command line
Result when HOST is up and reachable./negate -t 30 -s -c OK -o CRITICAL /usr/local/nagios/libexec/check_ping -H 172.28.31.26 -w 3000.0,80% -c 5000.0,100% -p 5
Result when the HOST is DOWNPING CRITICAL - Packet loss = 0%, RTA = 0.45 ms|rta=0.446000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
.CRITICAL - Plugin timed out after 30 seconds
I have used several time out values and get the same result.
If I test against a service as shown in the help document the negate plugin works properly.
Is this a bug or am I not using it properly.
Thanks
Sal