Page 1 of 1

Nagios plugin-check_snmp

Posted: Tue Sep 15, 2015 11:55 pm
by henrywang2016
Nagios server :centos 6.7 32bit

Nagios version: 4.0.8

./check_snmp -H localhost -C public -o .1.3.6.1.2.1.25.2.2
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.2.1.25.2.2

how to solve it ,please help !

Re: Nagios plugin-check_snmp

Posted: Wed Sep 16, 2015 12:12 pm
by tgriep
A couple of things to check for this is do you have SNMP installed and enabled through the firewall for the localhost?
In your example, you are not specifying the SNMP version, most newer systems are running SNMP version 2 and if the localhost is running version 2, try running the command as below.

Code: Select all

./check_snmp -H localhost -C public -o .1.3.6.1.2.1.25.2.2 -P 2c
Let us know if this works or not.