[Nagiosplug-help] question about failing check

C. Bensend benny at bennyvision.com
Thu Feb 24 03:23:54 CET 2011


> I have nrpe setup to check port 80. I have an event handler that will
> restart the service on a hard failure. My question is, when it has a hard
> failure, or times out, is there a way to configure nrpe to check again in
> x
> seconds? Say the normal check interval is 5 minutes, but the test of port
> 80
> just failed, can I configure nrpe to say ok I just failed or timed out, im
> going to check again in 10 seconds to make sure this is a real failure,
> and
> if so then im going to execute my event handler? I have looked into this,
> but I am not sure if I am missing an argument or if this is just not
> possible to do. Please advise, or let me know if there is a better way to
> handle first failures besides waiting an additional 5 minute cycle. Thank
> you.

Check out the event handler example in the documentation...  It shows
how to only execute the event handler after X failures, or when the
service transitions from SOFT failure to HARD.

It doesn't have to fire on the very first problem.  :)

Benny


-- 
"Hairy ape nads."        -- Colleen, playing Neverwinter Nights






More information about the Help mailing list