SNMP plugin warn/critical range issues?

Shayne Lebrun slebrun at muskoka.com
Tue Jan 28 20:46:54 CET 2003


>In another email, you ask about negative values. That requires a code
>change. We're trying to get a release out, I'm on the fence, but I'll call
>that a bug and fix it, unless others feel it's a feature request.
It would be appreciated.  I got into a bit of a row with Tobias from MRTG; I
had trouble convicing him that SNMP could even *return* negative values.

Here's another issue with the check_snmp plugin; when the OID is of
'Counter32' type, it's using the '32' in 'Counter32' to test against the -w
and -c ranges.

Freaked the bejeeebus out of me when I loaded up my latest service, and
noticed that ALL of my radios in one area were Warning - *32*. :-)
-----Original Message-----
From: Karl DeBisschop
[mailto:kdebisschop at h00e0185ef440.ne.client2.attbi.com]
Sent: Tuesday, January 28, 2003 1:37 PM
To: Shayne Lebrun
Cc: nagios-users at lists.sourceforge.net
Subject: Re: SNMP plugin warn/critical range issues?


Shayne Lebrun writes:

> Ok, the SNMP plugin seems to assume that higher values is better.
>
> To elaborate: I'm checking signal strength on some wireless radios.  0-25
> would be critical, 26-35 would be warning, and 36+ would be all systems
go.
>
> ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1
> SNMP OK - 72
>
> Fine.
>
> ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 -w
26:35 -c
> 0:25
> SNMP CRITICAL - *72*
>
>
> Now, 72 isn't between 26 and 35, and it isn't between 0 and 25.  Am I
> misinterpreting the help file, or am I just insane? :-)

You specify the range that is OK. Thus:

check_snmp -w 36: -c 26:

(from --help:

 - Ranges are inclusive and are indicated with colons. When specified as
 'min:max' STATE_OK will be returned if the result is within the indicated
 range or is equal to the upper or lower bound. A non-OK state will be
 returned if the result is outside the specified range.
)

In another email, you ask about negative values. That requires a code
change. We're trying to get a release out, I'm on the fence, but I'll call
that a bug and fix it, unless others feel it's a feature request.




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list