negate with check_nt and check_uptime
Posted: Sat Sep 26, 2015 12:27 pm
I am trying to setup a check to see when a server has been up to long on both windows and linux. I have tried the check_uptime and check_uptime_snmp but looks like it is backwards from what I need. I have tried the negate with the check scripts but it does not seem to be flipping the status.
I made a new command using the negate and ran the following but still get the wrong status code. Am I missing something or does the negate not work on this? I have tried the included check_uptime with in XI and the one from the nagios exchange with the same results.
check_nt
Help would be appreciated.
I made a new command using the negate and ran the following but still get the wrong status code. Am I missing something or does the negate not work on this? I have tried the included check_uptime with in XI and the one from the nagios exchange with the same results.
check_nt
Code: Select all
[root@localhost libexec]# ./negate ./check_nt -H 10.100.100.10 -s "Password1234" -p 12489 -v UPTIME -w 13500
System Uptime - 9 day(s) 1 hour(s) 26 minute(s) |uptime=13046
[root@localhost libexec]# echo $?
1
[root@localhost libexec]#