Page 1 of 1
Scheduled Downtime Notifications
Posted: Mon Jul 15, 2019 3:11 pm
by rferebee
Hello,
When a host is scheduled for downtime, is there a way to suppress the notifications that are sent out for each service related to the host when downtime starts and ends? Or, at least have XI only send out one notification (perhaps just for the host and not all the services)?
Thank you.
Re: Scheduled Downtime Notifications
Posted: Tue Jul 16, 2019 8:39 am
by lmiltchev
What kind of notification are you talking about? Can you show us an example of the actual email notification?
If the host is in hard non-OK state, notifications for services on this host won't be sent out.
https://assets.nagios.com/downloads/nag ... tions.html
This is the "default" behavior. Are you experiencing something else?
Re: Scheduled Downtime Notifications
Posted: Tue Jul 16, 2019 9:33 am
by rferebee
Yes, I'm talking about the DOWNTIMESTART and DOWNTIMESTOP notifications.
When we schedule downtime, XI sends out a notification of DOWNTIMESTART/STOP for every service associated with the host we're placing into downtime. Sometimes this can equate to 20+ emails going out at one time.
Is there a way to only send a single downtime notification for host rather than each individual service?
See attached notification log.
Re: Scheduled Downtime Notifications
Posted: Tue Jul 16, 2019 10:05 am
by lmiltchev
Most probably you are receiving DOWNTIMESTART and DOWNTIMESTOP notifications for services, because you are placing them in scheduled downtime along with the host. If you do not wish to receive these notifications, you have two options:
1. Modify service notification options, excluding "s" (send notifications when scheduled downtime starts and ends).
Service - notification options
This directive is used to determine when notifications for the service should be sent out. Valid options are a combination of one or more of the following:
w = send notifications on a WARNING state,
u = send notifications on an UNKNOWN state,
c = send notifications on a CRITICAL state,
r = send notifications on recoveries (OK state),
f = send notifications when the service starts and stops flapping, and
s = send notifications when scheduled downtime starts and ends.
If you do not specify any notification options, Nagios will assume that you want notifications to be sent out for all possible states.
Example: If you specify w,r in this field, notifications will only be sent out when the service goes into a WARNING state and when it recovers from a WARNING state.
Parameter name: notification_options
Required: no
The easiest way to do this in bulk would be to use the Bulk Modifications Tool. Select the notification options that you would like to use, excluding the scheduled downtime on, select all of the services to apply these options to, click on "Save Changes", and apply configuration.
example01.PNG
Keep in mind that this would affect all of the contacts that are receiving notifications.
2. Modify user's notification preferences by deselecting the "Service Downtime" check-box.
example02.PNG
You can log in/masquerade in as each user, and modify his/her notification preferences (or ask them to do it themselves). Each user can modify his/her own notification preferences. If you had Nagios XI Enterprise Edition, you would be able to modify users preferences in bulk under the "Notification Settings Management" page (Admin > Users > Notification Management > Notification Preferences).
Hope this helps.
Re: Scheduled Downtime Notifications
Posted: Tue Jul 16, 2019 1:12 pm
by rferebee
This is exactly what I needed, thank you. You can lock the thread.
Re: Scheduled Downtime Notifications
Posted: Tue Jul 16, 2019 2:25 pm
by lmiltchev
I am glad I could help!
