Check_snmp doesn't seem to work correctly?

John Senior js at irishbroadband.ie
Thu Jun 12 11:02:09 CEST 2003


Thanks Subhendu, however, if you look at the commands below, I have
run
with -c "500:0" which returns critical as you would expect, and also
with -c "100:0" which still returns critical!  In the 2nd example
below 228 is clearly not in the range 0-100..

Cheers,

John.

--
John Senior <js at irishbroadband.ie>

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of
Subhendu
> Ghosh
> Sent: 11 June 2003 15:05
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Check_snmp doesn't seem to work
correctly?
>
>
> On Wed, 11 Jun 2003, John Senior wrote:
>
> > Hi there folks, I'm trying to check a SNMP value with the
check_snmp
> > plugin
> > and it doesn't seem to be working correctly:
> >
> > mon# ./check_snmp -m : -v -c "500:0" -H 10.195.0.8 -o
> > .1.3.6.1.2.1.33.1.3.3.1.3.1
> > /usr/local/bin/snmpget -m : -v 1 -c public 10.195.0.8:161
> > .1.3.6.1.2.1.33.1.3.3.1.3.1
> > iso.3.6.1.2.1.33.1.3.3.1.3.1 = INTEGER: 233
> >
> > SNMP CRITICAL - *233*
> >
> > mon# ./check_snmp -m : -v -c "100:0" -H 10.195.0.8 -o
> > .1.3.6.1.2.1.33.1.3.3.1.3.1
> > /usr/local/bin/snmpget -m : -v 1 -c public 10.195.0.8:161
> > .1.3.6.1.2.1.33.1.3.3.1.3.1
> > iso.3.6.1.2.1.33.1.3.3.1.3.1 = INTEGER: 228
> >
> > SNMP CRITICAL - *228*
> >
> > The limits seem to be ignored for some reason - the plugin always
> > returns
> > a critical status.  This happens to be a voltage reading
> and I want to
> > get
> > a notification if it drops below a certain level.
> >
> > Am I missing something obvious?
> >
> > All the best,
> >
> > John.
> >
> > --
> > John Senior <js at irishbroadband.ie>
> >
>
> from the help:
>
> - If specified in the order 'max:min' a non-OK state will be
> returned if
> the result is within the (inclusive) range.
>
> 500<223<0   ==> non-OK == CRITICAL
>
> --
> -sg
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of
> TotalView, The best
> thread debugger on the planet. Designed with thread debugging
features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS
> when reporting any issue.
> ::: Messages without supporting info will risk being sent to
/dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030612/5c4c8245/attachment.html>


More information about the Users mailing list