[Nagiosplug-help] check_snmp always returns a WARNING when multiple OIDs are supplied
Thomas Guyot-Sionnest
dermoth at aei.ca
Fri Feb 2 10:02:00 CET 2007
On 02/02/07 03:20 AM, Conzen, Christoph (C.) wrote:
> I have downloaded, configured and made nagios-plugins-HEAD-200702020100 but the results are the same.
> Checking single OID are o.k. , checking multiples always return warnings.
>
> machine:/usr/local/nagios/source/plugins/nagios-plugins-HEAD-200702020100/plugins # ./check_snmp -H 10.10.10.10 -o .1.3.6.1.2.1.33.1.3.3.1.3.1,.1.3.6.1.2.1.33.1.3.3.1.3.2 -C public -P 2c
> SNMP WARNING - 232 232 | SNMPv2-SMI::mib-2.33.1.3.3.1.3.1=232 SNMPv2-SMI::mib-2.33.1.3.3.1.3.2=232
>
> machine:/usr/local/nagios/source/plugins/nagios-plugins-HEAD-200702020100/plugins # ./check_snmp -H 10.10.10.10 -o .1.3.6.1.2.1.33.1.3.3.1.3.1 -C public -P 2c
> SNMP OK - 232 | iso.3.6.1.2.1.33.1.3.3.1.3.1=232
>
> By the way - why does the perfdata output looks different for a single value and multiple values?
Sorry I just started a cross-post. Please reply to this one.
I think for some reasons, when checking multiple OIDs snmpget try to
process the MIBs and spit out an error due to missing or malformed MIBs.
There seems to be an error in the way scheck_snmp sets the '-m' argument
for snmpget. I won't need your debug output after all but rather look
into fixing it ;)
On a side note, you might want to fix those errors when using '-m ALL'
in your snmp commands (snmpget, walk, etc). That will allow snmp* to
resolve the oid and print names instead of numeric values.
Thomas
More information about the Help
mailing list