Always send RECOVER messages regardless of notification time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stucky
Posts: 31
Joined: Mon Apr 20, 2015 11:30 am

Always send RECOVER messages regardless of notification time

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Always send RECOVER messages regardless of notification

Post 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.
stucky
Posts: 31
Joined: Mon Apr 20, 2015 11:30 am

Re: Always send RECOVER messages regardless of notification

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Always send RECOVER messages regardless of notification

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Always send RECOVER messages regardless of notification

Post 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.
stucky
Posts: 31
Joined: Mon Apr 20, 2015 11:30 am

Re: Always send RECOVER messages regardless of notification

Post by stucky »

Great - thanks everyone.
Locked