Check_snmp doesn't seem to work correctly?

Subhendu Ghosh sghosh at sghosh.org
Thu Jun 12 14:15:51 CEST 2003


Sorry - about that.  What version of the plugin are you using?

On Thu, 12 Jun 2003, John Senior wrote:

> 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
> >

-- 




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
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





More information about the Users mailing list