[Nagiosplug-help] check_snmp always returns a WARNING when multiple OIDs are supplied
Conzen, Christoph (C.)
cconzen1 at getrag-ford.com
Fri Feb 2 09:20:01 CET 2007
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?
Thanks and kind regards, Christoph
-----Ursprüngliche Nachricht-----
Von: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
Gesendet: Freitag, 2. Februar 2007 05:56
An: Conzen, Christoph (C.)
Cc: nagiosplug-help at lists.sourceforge.net
Betreff: Re: [Nagiosplug-help] check_snmp always returns a WARNING when multiple OIDs are supplied
On 01/02/07 07:36 AM, Conzen, Christoph (C.) wrote:
>
> The check_snmp plugins works for a single OID as described:
>
> machine:/usr/local/nagios/libexec # ./check_snmp -H 10.10.10.10 -C
> public -P 2c -o .1.3.6.1.2.1.33.1.3.3.1.3.1
> SNMP OK - 231 | iso.3.6.1.2.1.33.1.3.3.1.3.1=231
>
> For multiple OIDs it always reports a WARNING - even with no warning or
> critical level supplied:
>
> machine:/usr/local/nagios/libexec # ./check_snmp -H 10.10.10.10 -C
> public -P 2c -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,.1.3.6.1.2.1.33.1.3.3.1.3.3
>
> SNMP WARNING - 231 229 231 | SNMPv2-SMI::mib-2.33.1.3.3.1.3.1=231
> SNMPv2-SMI::mib-2.33.1.3.3.1.3.2=229 SNMPv2-SMI::mib-2.33.1.3.3.1.3.3=231
>
> The wrong WARNING result is persistent also with ranges for warning and
> critical supplied:
>
> machine:/usr/local/nagios/libexec # ./check_snmp -H 10.10.10.10 -C
> public -P 2c -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,.1.3.6.1.2.1.33.1.3.3.1.3.3
> -w 220:250,220:250,220:250 -c 210:260,210:260,210:260
>
> SNMP WARNING - 231 229 231 | SNMPv2-SMI::mib-2.33.1.3.3.1.3.1=231
> SNMPv2-SMI::mib-2.33.1.3.3.1.3.2=229 SNMPv2-SMI::mib-2.33.1.3.3.1.3.3=231
>
> The check is done against a Generex CS121 SNMP Module of a UPS. The
> checked values are the Input Voltages of the 3 Power Phases.
>
> Am I doing something wrong, or is this a known bug, or is this the usual
> behaviour ? Platform is SLES9 SP3 64bit Intel - Plugins Version is 1.4.5
Could you please try with the latest CVS snapshot? It work on my prod
box with v1.4.3 (used to work on earlier versions as well) and it works
on my computer with CVS HEAD as well:
$ plugins/check_snmp -H localhost -o
.1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3
-w 800,600,400 -c 1600,1200,800 -C public -l load
load OK - 249 246 244 | UCD-SNMP-MIB::laLoadInt.1=249
UCD-SNMP-MIB::laLoadInt.2=246 UCD-SNMP-MIB::laLoadInt.3=244
$ plugins/check_snmp -H localhost -o
.1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3
-w 800,600,400 -c 1600,1200,800 -C public
SNMP OK - 245 245 243 | UCD-SNMP-MIB::laLoadInt.1=245
UCD-SNMP-MIB::laLoadInt.2=245 UCD-SNMP-MIB::laLoadInt.3=243
$ plugins/check_snmp -H localhost -o
.1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3
-C public
SNMP OK - 242 245 243 | UCD-SNMP-MIB::laLoadInt.1=242
UCD-SNMP-MIB::laLoadInt.2=245 UCD-SNMP-MIB::laLoadInt.3=243
This polls the integer version of the UNIX 1,5 and 15 min. load average
counters (divide by 100 to get the float value).
Note: I also tried with '-P 2c' and putting the -o at the end.
Thanks,
Thomas
More information about the Help
mailing list