check_snmp with multiple OIDs failing
Posted: Mon Nov 03, 2014 1:22 pm
I'm having trouble calling check_snmp with multiple OIDs. Tested with 1.14.16 and 2.0.3.
It works with some OIDs, but not others.
combo of syName & sysDescr works fine.
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.1.5.0 -o .1.3.6.1.2.1.1.1.0 -l sysName -l sysDescr
SNMP OK - sysName "xBalancer1" sysDescr "xBalancer" |
Then there's these two OIDs, IF-MIB::ifOutOctets, and IF-MIB::ifInOctets, which work on their own.
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.2.2.1.16.1
SNMP OK - 3234859200 | iso.3.6.1.2.1.2.2.1.16.1=3234859200c
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.2.2.1.10.1
SNMP OK - 15737717 | iso.3.6.1.2.1.2.2.1.10.1=15737717c
But when I try to get those same two OIDs in one call, it fails.
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.2.2.1.16.1 -o .1.3.6.1.2.1.2.2.1.10.1
External command error: Error in packet
Reason: (genError) A general failure occured
Failed object: iso.3.6.1.2.1.2.2.1.10.1
It works with some OIDs, but not others.
combo of syName & sysDescr works fine.
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.1.5.0 -o .1.3.6.1.2.1.1.1.0 -l sysName -l sysDescr
SNMP OK - sysName "xBalancer1" sysDescr "xBalancer" |
Then there's these two OIDs, IF-MIB::ifOutOctets, and IF-MIB::ifInOctets, which work on their own.
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.2.2.1.16.1
SNMP OK - 3234859200 | iso.3.6.1.2.1.2.2.1.16.1=3234859200c
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.2.2.1.10.1
SNMP OK - 15737717 | iso.3.6.1.2.1.2.2.1.10.1=15737717c
But when I try to get those same two OIDs in one call, it fails.
check_snmp -P 2c -H XXXX -C XXXX -o .1.3.6.1.2.1.2.2.1.16.1 -o .1.3.6.1.2.1.2.2.1.10.1
External command error: Error in packet
Reason: (genError) A general failure occured
Failed object: iso.3.6.1.2.1.2.2.1.10.1