Testing snmp_check plugin - No variable in MIB
Posted: Wed Jul 11, 2018 3:10 pm
snmp_check plugin returns an error when snmpwalk does not; I am confused if it is an issue with the plugin or the syntax I am using.
SNMPWALK returns a value for the OID I am checking:
snmpwalk -v 2c -c public 10.34.100.11 1.3.6.1.4.1.1991.1.1.1.1.18
SNMPv2-SMI::enterprises.1991.1.1.1.1.18.0 = INTEGER: 96
SNMP_CHECK returns multiple errors:
/usr/local/nagios/libexec/check_snmp -C public -H 10.34.100.11 -o 1.3.6.1.4.1.1991.1.1.1.1.18
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.1991.1.1.1.1.18
plugin version is 2.2.1
/usr/local/nagios/libexec/check_snmp -V
check_snmp v2.2.1 (nagios-plugins 2.2.1)
The MIB information that SNMPWALK uses is in the /usr/share/snmp/mibs directory.
So my first questions is the syntax I am using for snmp_check correct?
Second question does snmp_check use the same MIB data that snmpwalk is using?
If both commands use the same MIB data, why is snmp_check throwing errors?
SNMPWALK returns a value for the OID I am checking:
snmpwalk -v 2c -c public 10.34.100.11 1.3.6.1.4.1.1991.1.1.1.1.18
SNMPv2-SMI::enterprises.1991.1.1.1.1.18.0 = INTEGER: 96
SNMP_CHECK returns multiple errors:
/usr/local/nagios/libexec/check_snmp -C public -H 10.34.100.11 -o 1.3.6.1.4.1.1991.1.1.1.1.18
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.1991.1.1.1.1.18
plugin version is 2.2.1
/usr/local/nagios/libexec/check_snmp -V
check_snmp v2.2.1 (nagios-plugins 2.2.1)
The MIB information that SNMPWALK uses is in the /usr/share/snmp/mibs directory.
So my first questions is the syntax I am using for snmp_check correct?
Second question does snmp_check use the same MIB data that snmpwalk is using?
If both commands use the same MIB data, why is snmp_check throwing errors?