Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

roddie

Reviews(1)
byroddie, July 11, 2019
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