Page 1 of 1
Delay transition from OK to CRITICAL for host/services
Posted: Tue Sep 19, 2017 11:41 pm
by tarzan
I would like to make that when a host/ service goes into critical state, the OK ==> CRITICAL transition occurs not immediately but after a configurable time interval.
With nagios is it possible?
Thank you
Re: Delay transition from OK to CRITICAL for host/services
Posted: Wed Sep 20, 2017 7:23 am
by mcapra
You can't really fine-tune when a check changes status* because that's entirely dependent on the plugin itself. You could certainly write a plugin to behave that way, though it's not what I would consider typical.
You can fine-tune
state changes though by using the
retry_interval directive. More info on this page:
https://assets.nagios.com/downloads/nag ... tions.html
Essentially, by tuning the
retry_interval you can impact when Nagios detects a problem state. So if you had a
retry_interval of 10, Nagios would need to detect 10 consecutive problem statuses* before it raised any alarms. Obviously this won't change how things look on the front-end very much, but it is very meaningful when it comes to event and notification handlers.
Re: Delay transition from OK to CRITICAL for host/services
Posted: Wed Sep 20, 2017 9:47 am
by tarzan
Thank you for the reply
Tarzan
Re: Delay transition from OK to CRITICAL for host/services
Posted: Wed Sep 20, 2017 2:43 pm
by cdienger
+1 regarding the retry interval. Does that seem to help in your case, tarzan?