Delay transition from OK to CRITICAL for host/services

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tarzan
Posts: 17
Joined: Thu Sep 08, 2016 9:09 am

Delay transition from OK to CRITICAL for host/services

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Delay transition from OK to CRITICAL for host/services

Post 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.
Former Nagios employee
https://www.mcapra.com/
tarzan
Posts: 17
Joined: Thu Sep 08, 2016 9:09 am

Re: Delay transition from OK to CRITICAL for host/services

Post by tarzan »

Thank you for the reply

Tarzan
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Delay transition from OK to CRITICAL for host/services

Post by cdienger »

+1 regarding the retry interval. Does that seem to help in your case, tarzan?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked