Way to limit downtime emails?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tim reeder
Posts: 2
Joined: Wed Apr 05, 2017 1:38 pm

Way to limit downtime emails?

Post by tim reeder »

I am new to Nagios XI. Yesterday I scheduled downtime for 4 different hosts which each have over 20 services being monitored. When the the scheduled downtime started, I was very surprised :roll: to recieve almost 100 emails telling me that individual services were starting scheduled downtime, and then another 100 emails when the downtime was complete.

Is there a way to limit or turn off emails in these types of situations? Ideally I would like maybe just one email per host saying that this host and all service on it are starting/ending scheduled downtime.


Thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Way to limit downtime emails?

Post by dwhitfield »

notification_options: This directive is used to determine when notifications for the host should be sent out. Valid options are a combination of one or more of the following: d = send notifications on a DOWN state, u = send notifications on an UNREACHABLE state, r = send notifications on recoveries (OK state), f = send notifications when the host starts and stops flapping, and s = send notifications when scheduled downtime starts and ends. If you specify n (none) as an option, no host notifications will be sent out. 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 d,r in this field, notifications will only be sent out when the host goes DOWN and when it recovers from a DOWN state.
-- https://assets.nagios.com/downloads/nag ... .html#host (this is for 3, so if you have 4, but sure to check there)

Basically, it's pretty easy not to get downtime messages. Just remove the host from those where you don't want the message.
tim reeder
Posts: 2
Joined: Wed Apr 05, 2017 1:38 pm

Re: Way to limit downtime emails?

Post by tim reeder »

dwhitfield wrote:
notification_options: This directive is used to determine when notifications for the host should be sent out. Valid options are a combination of one or more of the following: d = send notifications on a DOWN state, u = send notifications on an UNREACHABLE state, r = send notifications on recoveries (OK state), f = send notifications when the host starts and stops flapping, and s = send notifications when scheduled downtime starts and ends. If you specify n (none) as an option, no host notifications will be sent out. 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 d,r in this field, notifications will only be sent out when the host goes DOWN and when it recovers from a DOWN state.
-- https://assets.nagios.com/downloads/nag ... .html#host (this is for 3, so if you have 4, but sure to check there)

Basically, it's pretty easy not to get downtime messages. Just remove the host from those where you don't want the message.
Thanks! I will take a look at this.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Way to limit downtime emails?

Post by dwhitfield »

So, I should have mentioned this since this is XI (I'm not sure why I was thinking Core since your post says XI), but you don't want to modify the config files directly in XI. You'll want to remove the "s" via the CCM (but it won't say 's' in the CCM).

Also, I might just suggest filtering the scheduled downtime emails. The problem with turning them off is what if you just put the service in scheduled downtime and not the host? Of course, the scheduled downtime is still listed in the UI, so it's just a decision on where you want to see that information.
Locked