Check_snmp doesn't seem to work correctly?
John Senior
js at irishbroadband.ie
Thu Jun 12 14:46:45 CEST 2003
check_snmp -V gives this:
check_snmp (nagios-plugins 1.3.0) 1.24
--
John Senior <js at irishbroadband.ie>
> -----Original Message-----
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
> Sent: 12 June 2003 13:16
> To: John Senior
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Check_snmp doesn't seem to work
correctly?
>
>
> 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
> > >
>
> --
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030612/730f7f79/attachment.html>
More information about the Users
mailing list