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
Always send RECOVER messages regardless of notification time
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Always send RECOVER messages regardless of notification
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.
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
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.
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
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.
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!
Re: Always send RECOVER messages regardless of notification
I've already created a feature request internally, no need to post one on tracker.nagios.com.
If you've already posted one, please post the link here so that we can remove the duplicate.
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 timeperiodRe: Always send RECOVER messages regardless of notification
Great - thanks everyone.