<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Auto-clearing passive checks</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Heya</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am running Nagios with snmptraps being caught in the usual passive/volitile check method. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The big downside with this setup is that those traps will never clear. I have to manually submit a passive check to clear them, which is annoying.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">So I want to build an active check that I can use to auto-clear them with the following paramaters.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If the service is currently ok, Return OK.</FONT>

<BR><FONT SIZE=2 FACE="Arial">If the service is currently non-ok and the last non-ok passive check state is less then x minutes old, return the current state.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">If the service is currently non-ok, and the last non-ok passive check state is greater then x minutes old, Return ok. (ie, reset the state)</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I see a few problems with this.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">1: With volatile being set, every time the auto-clear check runs, it will re-notify.</FONT>

<BR><FONT SIZE=2 FACE="Arial">2: I have no way of getting the last time that a passive check reported, only the time that the service changed from OK to Non-ok. (ie, if a passive check sends a non ok, at time 0, and again at time 30. I want the reset to occur as x+30, not x.)</FONT></P>

<P><FONT SIZE=2 FACE="Arial">My leaning then is to do this outside of nagios. And run a script that checks the status file, looks for services that meet the requirements. (passive only, non-ok, Last update greater then x) and submit a passive check to reset them.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Anyone else have any innovative solutions to this?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>

<BR><FONT SIZE=2 FACE="Arial">-Andrew</FONT>
</P>

-- <br>_________________________________________________________<br>This communication is intended only for the addressee(s) and may contain confidential information. We do not waive any confidentiality by misdelivery. If you receive this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately.</BODY>
</HTML>