[Nagiosplug-help] check_snmp always returns a WARNING when multiple OIDs are supplied
Thomas Guyot-Sionnest
dermoth at aei.ca
Fri Feb 2 05:56:25 CET 2007
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