<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=652550403-24102006>I achieve this by using the check_snmp options to test
for a known value in the response string (eg: '.'). This way, I can alert
if anyone stops the SNMP daemon or changes the community
strings.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=652550403-24102006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=652550403-24102006>Steve</SPAN></FONT></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Steve Shipway<BR>ITSS, University of Auckland<BR>(09) 3737
599 x 86487<BR>s.shipway@auckland.ac.nz<BR><BR></FONT></P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Pete
Siemsen<BR><B>Sent:</B> Tuesday, 24 October 2006 1:25 p.m.<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] how to
make check_snmp timeout CRITICAL<BR></FONT><BR></DIV>
<DIV></DIV>I have a host that won't do ping but will do SNMP, so I want Nagios
to check this host's reachability using SNMP. I don't care what SNMP
value I get, only that the host replies to SNMP. I tried using
check_snmp to get the sysObjectID, and it works fine. When the machine
is unreachable, check_snmp returns "SNMP problem - No data received from
host", which is fine, but Nagios still shows the host as "ok". I assume
check_snmp is returning a status of OK or something, even though the SNMP
request totally failed. What can I do?
<DIV>
<DIV>
<DIV><BR>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 14px Times New Roman; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2">
<DIV>-- Pete</DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR
class=Apple-interchange-newline></SPAN></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>