Nagios plugin-check_snmp

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
henrywang2016
Posts: 9
Joined: Wed Aug 19, 2015 8:15 pm

Nagios plugin-check_snmp

Post 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 !
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios plugin-check_snmp

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked