Configure Max_Check_Attempts for Passive Service?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Configure Max_Check_Attempts for Passive Service?

Post by matt.uebel »

Right now it seems that all our passive services notify on the first critical check. Is it possible to have it instead enter a soft state for some number of checks?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Configure Max_Check_Attempts for Passive Service?

Post by slansing »

Passive services are generally always hard states, and will notify immediately unless you specify a wait time in the host/service configuration. This would be done through Configure > CCM > Services > "Service Name" > Check Settings / Alert Settings.
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Re: Configure Max_Check_Attempts for Passive Service?

Post by matt.uebel »

So suppose the passive check is running off a cron schedule of everything 3 minutes. Also suppose that the notify delay is set for 4 minutes.

Now, a critical check comes in, service goes into critical state but doesn't notify because it will wait 4 minutes. Now, 3 minutes later another check comes in, and this check is an OK result.

Will the service notify at the end of the 4 minutes? Or will it not notify because the service got an OK check within the wait time?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Configure Max_Check_Attempts for Passive Service?

Post by sreinhardt »

Because the state change is altered back to OK it should not send the critical. It could however send a recovery as this is not a soft state, and all passive states are hard regardless of the delay.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked