<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=390455022-25112004><FONT face=Arial color=#0000ff size=2>seems
that you may have a discrepancy between what you run on the command line vs what
is defined in checkcommands.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=390455022-25112004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390455022-25112004><FONT face=Arial color=#0000ff size=2>can
you supply the service definition and the corresponding checkcommand. i'm
guessing you've messed up the ordering of the ranges (MAX:MIN vs MIN:MAX) in
checkcommands.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=390455022-25112004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390455022-25112004><FONT face=Arial color=#0000ff
size=2>Edy</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B>On Behalf Of
</B>G˙fffff6ran Almvik<BR><B>Sent:</B> Friday, 26 November 2004 2:06
AM<BR><B>To:</B> Nagios-users@lists.sourceforge.net<BR><B>Subject:</B>
[Nagios-users] check_snmp - wrong status<BR><BR></FONT></DIV>
<DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV>Having severe problems with check_snmp in Nagios (RH 8.0). The command
works fine from command line but for unknown reasons Nagios interpretes the
result as a Warning state even if the result is within limits of both
warning and critical.</DIV>
<DIV> </DIV>
<DIV>The command checks a temp sensor and the OID returns the
temperature.</DIV>
<DIV> </DIV>
<DIV>The command </DIV>
<DIV>/usr/local/nagios/libexec/check_snmp -C public -H 10.20.29.50 -o
.1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 33:28 -c 100:34 -m
/root/snmp/mib_files/5.0/sp.mib</DIV>
<DIV> </DIV>
<DIV>When run from command line the result is SNMP OK - 22. When run from
Nagios the result is SNMP Warning - 22.</DIV>
<DIV> </DIV>
<DIV>I've tried all possible warn/crit. ranges but end up withthe same
problem. Anybody got a clue where Nagios gets this funny idea from?
</DIV>
<DIV>check_snmp version 1.25 (nagios-plugins 200303262200).</DIV>
<DIV> </DIV>
<DIV>Greatful for any help!</DIV>
<DIV>/G </DIV>
<P> </P></BLOCKQUOTE></DIV>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR>The <A href="http://my.yahoo.com">all-new My Yahoo!</A>
Get yours free! </BLOCKQUOTE></BODY></HTML>