Page 1 of 1

Always send RECOVER messages regardless of notification time

Posted: Fri Jun 05, 2015 6:43 pm
by stucky
Gurus
Today I noticed that you can get into a weird state when you use a non-24/7 notification schedule.
We have 9am-9pm and a service went down around 7pm and came back around 10pm. The CRITICAL was sent out but, of course, the RECOVERY wasn't because it occurred outside of notification hours.
I know nagios acted exactly as instructed but would it not make sense to have the option to send RECOVERYs outside a given notification window if they relate to a previous WARN or CRIT that was triggered within that window ?
Just asking since otherwise you get a weird scenario where everybody got an alert but no recovery eventhough the service recovered.

thx

Re: Always send RECOVER messages regardless of notification

Posted: Mon Jun 08, 2015 9:42 am
by jdalrymple
It's not builtin to have timeperiods apply to notification type, but there is enough flexibility that you can probably achieve the desired goal. Which option makes the most sense for you is probably for you to decide:

1) Event Handler that sends a Recovery E-mail (I don't think it would be an official "recovery" E-mail, but the sky is pretty much the limit regarding what you can put in for your E-mail content)
2) 2 services
3) 2 (or more) contacts

If you were doing this for a lot of services or had multiple contacts defined, I think #1 would be the most prudent choice.

Re: Always send RECOVER messages regardless of notification

Posted: Tue Jun 09, 2015 1:06 pm
by stucky
jda
Thx. Perhaps this could be added to the wishlist for future releases ? I'd imagine it wouldn't be too difficult to add an option that sends RECOVERYs regardless of notification window based on a checkbox.

Re: Always send RECOVER messages regardless of notification

Posted: Tue Jun 09, 2015 1:49 pm
by lmiltchev
I can see how this kind of functionality could be useful. For example you don't want to be notified after work hours (outside the notification period) UNLESS it is a critical (or recovery) notification... or maybe, you care only about a few crucially important services...
You are welcome to post a feature request on bug bug tracker here:
http://tracker.nagios.com

For the time being, stick to the jdalrymple's solution. This feature request may or may not be implemented, depending on the interest shown from other users.

Re: Always send RECOVER messages regardless of notification

Posted: Tue Jun 09, 2015 2:01 pm
by ssax
I've already created a feature request internally, no need to post one on tracker.nagios.com.

Code: Select all

NEW TASK ID 5786 created - Nagios XI Feature Request: Add option to send recovery notification outside of timeperiod if a problem notification was sent while in timeperiod
If you've already posted one, please post the link here so that we can remove the duplicate.

Re: Always send RECOVER messages regardless of notification

Posted: Tue Jun 09, 2015 2:16 pm
by stucky
Great - thanks everyone.