Page 1 of 1

check_snmp - noSuchName

Posted: Mon Apr 18, 2016 2:44 pm
by wesmat
I am attempting to monitor an APC Symmetra UPS with snmp. Things are great using snmpwalk as well as a PHP script I am writing. But the check_snmp command gives me the following:

Code: Select all

$ /usr/local/nagios/libexec/check_snmp -H 10.139.9.211 -C 'public' -P 1 -o .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.318.1.1.10.2.3.2.1.4
when I try snmpwalk I get the following:

Code: Select all

$ snmpwalk -v1 -c public 10.139.9.211 .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4
SNMPv2-SMI::enterprises.318.1.1.10.2.3.2.1.4.1 = INTEGER: 72
I thought it might be the snmp version, so I switched to 2c and I get:

Code: Select all

$ /usr/local/nagios/libexec/check_snmp -H 10.139.9.211 -C 'public' -P 2c -o .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4
External command error: Timeout: No Response from 10.139.9.211:161
I am running all of this from an ssh session on the nagios xi server.

What am I doing wrong? I can send additional info if needed.

Re: check_snmp - noSuchName

Posted: Mon Apr 18, 2016 4:58 pm
by Box293
See here in the SNMP Walk output:
wesmat wrote:when I try snmpwalk I get the following:

Code: Select all

$ snmpwalk -v1 -c public 10.139.9.211 .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4
SNMPv2-SMI::enterprises.318.1.1.10.2.3.2.1.4.1 = INTEGER: 72
The OID ends in .1

Try changing your command:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 10.139.9.211 -C 'public' -P 1 -o .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1

Re: check_snmp - noSuchName

Posted: Tue Apr 19, 2016 9:20 am
by wesmat
Thanks! Yes, adding .1 to the OID makes it work.

I am very new to SNMP - sorry for the simple question.

Re: check_snmp - noSuchName

Posted: Tue Apr 19, 2016 10:27 am
by rkennedy
No problem - glad to see you got it working.

Marking this one as resolved, but feel free to create a new thread if you need any assistance in the future.