<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>RE: [Nagios-users] Check_snmp doesn't seem to work correctly?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thanks Subhendu, however, if you look at the commands below, I have run</FONT>

<BR><FONT SIZE=2>with -c "500:0" which returns critical as you would expect, and also</FONT>

<BR><FONT SIZE=2>with -c "100:0" which still returns critical!  In the 2nd example </FONT>

<BR><FONT SIZE=2>below 228 is clearly not in the range 0-100..</FONT>
</P>

<P><FONT SIZE=2>Cheers,</FONT>
</P>

<P><FONT SIZE=2>John.</FONT>
</P>

<P><FONT SIZE=2>--</FONT>

<BR><FONT SIZE=2>John Senior <js@irishbroadband.ie> </FONT>
</P>

<P><FONT SIZE=2>> -----Original Message-----</FONT>

<BR><FONT SIZE=2>> From: nagios-users-admin@lists.sourceforge.net</FONT>

<BR><FONT SIZE=2>> [<A HREF="mailto:nagios-users-admin@lists.sourceforge.net">mailto:nagios-users-admin@lists.sourceforge.net</A>]On Behalf Of Subhendu</FONT>

<BR><FONT SIZE=2>> Ghosh</FONT>

<BR><FONT SIZE=2>> Sent: 11 June 2003 15:05</FONT>

<BR><FONT SIZE=2>> To: nagios-users@lists.sourceforge.net</FONT>

<BR><FONT SIZE=2>> Subject: Re: [Nagios-users] Check_snmp doesn't seem to work correctly?</FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> On Wed, 11 Jun 2003, John Senior wrote:</FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> > Hi there folks, I'm trying to check a SNMP value with the check_snmp</FONT>

<BR><FONT SIZE=2>> > plugin</FONT>

<BR><FONT SIZE=2>> > and it doesn't seem to be working correctly:</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > mon# ./check_snmp -m : -v -c "500:0" -H 10.195.0.8 -o</FONT>

<BR><FONT SIZE=2>> > .1.3.6.1.2.1.33.1.3.3.1.3.1</FONT>

<BR><FONT SIZE=2>> > /usr/local/bin/snmpget -m : -v 1 -c public 10.195.0.8:161</FONT>

<BR><FONT SIZE=2>> > .1.3.6.1.2.1.33.1.3.3.1.3.1</FONT>

<BR><FONT SIZE=2>> > iso.3.6.1.2.1.33.1.3.3.1.3.1 = INTEGER: 233</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > SNMP CRITICAL - *233*</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > mon# ./check_snmp -m : -v -c "100:0" -H 10.195.0.8 -o</FONT>

<BR><FONT SIZE=2>> > .1.3.6.1.2.1.33.1.3.3.1.3.1</FONT>

<BR><FONT SIZE=2>> > /usr/local/bin/snmpget -m : -v 1 -c public 10.195.0.8:161</FONT>

<BR><FONT SIZE=2>> > .1.3.6.1.2.1.33.1.3.3.1.3.1</FONT>

<BR><FONT SIZE=2>> > iso.3.6.1.2.1.33.1.3.3.1.3.1 = INTEGER: 228</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > SNMP CRITICAL - *228*</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > The limits seem to be ignored for some reason - the plugin always</FONT>

<BR><FONT SIZE=2>> > returns</FONT>

<BR><FONT SIZE=2>> > a critical status.  This happens to be a voltage reading </FONT>

<BR><FONT SIZE=2>> and I want to</FONT>

<BR><FONT SIZE=2>> > get</FONT>

<BR><FONT SIZE=2>> > a notification if it drops below a certain level.</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > Am I missing something obvious?</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > All the best,</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > John.</FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> > --</FONT>

<BR><FONT SIZE=2>> > John Senior <js@irishbroadband.ie></FONT>

<BR><FONT SIZE=2>> > </FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> from the help:</FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> - If specified in the order 'max:min' a non-OK state will be </FONT>

<BR><FONT SIZE=2>> returned if </FONT>

<BR><FONT SIZE=2>> the result is within the (inclusive) range.</FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> 500<223<0   ==> non-OK == CRITICAL</FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> -- </FONT>

<BR><FONT SIZE=2>> -sg</FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> </FONT>

<BR><FONT SIZE=2>> -------------------------------------------------------</FONT>

<BR><FONT SIZE=2>> This SF.net email is sponsored by:  Etnus, makers of </FONT>

<BR><FONT SIZE=2>> TotalView, The best</FONT>

<BR><FONT SIZE=2>> thread debugger on the planet. Designed with thread debugging features</FONT>

<BR><FONT SIZE=2>> you've never dreamed of, try TotalView 6 free at www.etnus.com.</FONT>

<BR><FONT SIZE=2>> _______________________________________________</FONT>

<BR><FONT SIZE=2>> Nagios-users mailing list</FONT>

<BR><FONT SIZE=2>> Nagios-users@lists.sourceforge.net</FONT>

<BR><FONT SIZE=2>> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>

<BR><FONT SIZE=2>> ::: Please include Nagios version, plugin version (-v) and OS </FONT>

<BR><FONT SIZE=2>> when reporting any issue. </FONT>

<BR><FONT SIZE=2>> ::: Messages without supporting info will risk being sent to /dev/null</FONT>

<BR><FONT SIZE=2>> </FONT>
</P>

</BODY>
</HTML>