Uptime check not showing properly
Posted: Wed Oct 31, 2018 8:25 am
Uptime check not showing properly. I have tested in one of the server, but the event log shows different. I rebooted the server about 16 minutes, but in uptime service check shows "SNMP OK - Uptime 88634" the seconds calculation looks not correct.
Below is the command, using check_snmp plugin.
-o sysUpTime.0 -C NAGIOS-SNMP -P 2c -l Uptime -c 28800:0
Event log for the uptime alert:-
Type Date / Time Information
Service Recovery 2018-10-31 09:12:17 SERVICE ALERT: whcinxtest04;Uptime;OK;HARD;1;SNMP OK - Uptime 28911
Service Critical 2018-10-31 09:11:18 SERVICE ALERT: whcinxtest04;Uptime;CRITICAL;SOFT;2;SNMP CRITICAL - Uptime *23019*
Service Critical 2018-10-31 09:10:19 SERVICE ALERT: whcinxtest04;Uptime;CRITICAL;SOFT;1;SNMP CRITICAL - Uptime *17132*
Below is the command, using check_snmp plugin.
-o sysUpTime.0 -C NAGIOS-SNMP -P 2c -l Uptime -c 28800:0
Event log for the uptime alert:-
Type Date / Time Information
Service Recovery 2018-10-31 09:12:17 SERVICE ALERT: whcinxtest04;Uptime;OK;HARD;1;SNMP OK - Uptime 28911
Service Critical 2018-10-31 09:11:18 SERVICE ALERT: whcinxtest04;Uptime;CRITICAL;SOFT;2;SNMP CRITICAL - Uptime *23019*
Service Critical 2018-10-31 09:10:19 SERVICE ALERT: whcinxtest04;Uptime;CRITICAL;SOFT;1;SNMP CRITICAL - Uptime *17132*