Build precise queries to find exactly what you need
Press ESC to close
@roddie
Member Since: July 11, 2019
Favorites0
Views
Projects0
I understand this is 8 years old and there might be better alternatives people are using already, but in 2019 this was one of the first plugins that came up for a search of "nagios snmp uptime" so thought it was worth commenting on. Maybe it was the author's intention, but by using snmpEngineUptime instead of sysUpTime this plugin does not check the uptime of the OS/device, it checks the uptime of the SNMP daemon so it will show a different time if eg. snmpd has been restarted at any point. [root@server1 nagios]# ./check_snmp -H server2 -C public -o snmpEngineTime.0 -P 2c SNMP OK - 958 seconds | SNMP-FRAMEWORK-MIB::snmpEngineTime.0=958 [root@server1 nagios]# ./check_snmp -H server2 -C public -o sysUpTime.0 -P 2c SNMP OK - 96767 | DISMAN-EVENT-MIB::sysUpTimeInstance=96767
Reviewed 6 years ago