[Nagiosplug-help] question about failing check
lists
lists at catsnest.co.uk
Thu Feb 24 11:23:10 CET 2011
On Thu, Feb 24, 2011 at 3:00 AM, Mike Loud
<mike.loud at comandsolutions.com> wrote:
> Benny,
>
> Is there a way to change the interval of the check if it fails the first
> time though? If it fails, instead of waiting another 5 minutes to check
> again, can the check run in 10 seconds? For example, if apache doesn’t
> respond, check again in 10 seconds to make sure it isn't just a network lag
> or hiccup, and if that fails then execute the event handler? From my
> understanding, the failure count can be set but the check interval is a
> constant, or am I wrong on that? Thank you for the reply.
>
>
>
Maybe
retry_interval: This directive is used to define the number of "time
units" to wait before scheduling a re-check of the service. Services
are rescheduled at the retry interval when they have changed to a
non-OK state. Once the service has been retried max_check_attempts
times without a change in its status, it will revert to being
scheduled at its "normal" rate as defined by the check_interval value.
Unless you've changed the interval_length directive from the default
value of 60, this number will mean minutes. More information on this
value can be found in the check scheduling documentation.
http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service
Ritchie,
--
Fnord...
<-- http://23.me.uk --> <-- http://wiki.s23.org --> <--
http://twitter.com/23me -->
<- - What garlic is to salad, insanity is to art. ->
>
>
> --
> Mike Loud
> COMAND Solutions
> 800-598-0869 x2
> www.comandsolutions.com
> -----Original Message-----
> From: C. Bensend
> Sent: Wednesday, February 23, 2011 9:23 PM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] question about failing check
>
>
>> 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
>
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data
> generated by your applications, servers and devices whether physical,
> virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Help
mailing list