check_snmp - noSuchName

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wesmat
Posts: 2
Joined: Tue Dec 27, 2011 12:10 pm

check_snmp - noSuchName

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_snmp - noSuchName

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
wesmat
Posts: 2
Joined: Tue Dec 27, 2011 12:10 pm

Re: check_snmp - noSuchName

Post by wesmat »

Thanks! Yes, adding .1 to the OID makes it work.

I am very new to SNMP - sorry for the simple question.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_snmp - noSuchName

Post 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.
Former Nagios Employee
Locked