Alternate check interval when state become CRITICAL

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Feb 10 06:57:35 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/02/09 06:57 PM, Justin Pasher wrote:
> Hello,
> 
> (I have included the applicable nagios definitions at the end of the email).
> 
> I'm trying to figure out if this is even possible. I am running Nagios 
> 3.0.6 on Debian Etch. I have some service checks setup to see if a web 
> site is still reachable. The check itself is pretty simple. It inherits 
> most of the options from a service template (most were the default 
> settings out of the box).
> 
> Right now, the check happens every 5 minutes. If the check_http exceeds 
> the timeout, it changes to a CRITICAL state and the alert is sent. After 
> that, it continues to check every 5 minutes to see if the state changes. 
> If the state remains at CRITICAL or changes to OK, another notification 
> is sent out.
> 
> What I would like to do is have the check interval change to every one 
> minute when the state become CRITICAL, but keep the notifications at 5 
> minute intervals.

It's simple: use an eventhandler.

You can look at this for inspiration, although you would likely need
some more details to understand what I'm trying to do there...
http://solaris.beaubien.net/~dermoth/media/nagios/handle_stall_counter

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJkRdO6dZ+Kt5BchYRAkorAJ9SLvtDLhVVM/FIPsztLTEOeRf4nACg32sT
EbNrMLPGjm76Rf1/OeWkkSw=
=GOYA
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list