Scheduled Downtime still sends notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
firstaspect
Posts: 2
Joined: Wed Mar 05, 2014 5:43 am

Scheduled Downtime still sends notifications

Post by firstaspect »

Hi There,

We're using Nagios Core 4.0.2 and I'm having an issue with the Scheduled Downtime. I'm using "Schedule downtime for all services on this host" when we need to make some maintenance updates so the host itself stays alive, but all the applications on it may be up and down.
I can see the Service Comment telling me that downtime has been scheduled and I will not receive notifications in that time. However we still get email notifications.

I've set the downtime in advance so everything was up and running at the time I scheduled it.

Any help would be greatly appreciated.

Thanks,
Mark
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Scheduled Downtime still sends notifications

Post by abrist »

Do you have notifications configured as event handlers?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
firstaspect
Posts: 2
Joined: Wed Mar 05, 2014 5:43 am

Re: Scheduled Downtime still sends notifications

Post by firstaspect »

I'm using the default 'notify-service-by-email' command definition and then within the generic template of a contact using:

service_notification_period 24x7 ; service notifications can be sent anytime
service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events
service_notification_commands notify-service-by-email ; send service notifications via email


And the service template:

notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
notification_interval 720 ; notify about service problems every 12 hours
notification_period 24x7 ; Notifications can be sent out at any time


Thanks,
Mark
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Scheduled Downtime still sends notifications

Post by sreinhardt »

Would it be possible for you to post a portion of the nagios.log of when this happened. Specifically I am looking for if the host\services entered downtime prior to any warning\critical checks were returned. I want to be sure that the host\services did not begin entering a warning or critical state prior to the downtime actually taking effect, as it would be possible the codes logic, would allow for sending notifications in this case.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
nimhengnrs
Posts: 6
Joined: Thu Mar 28, 2013 12:30 pm

Re: Scheduled Downtime still sends notifications

Post by nimhengnrs »

Its a checkbox you have to disabled. Click on the service and go to the check settings. There are 4 radio buttons w, c, o, u. Its one of them that needs to be unchecked and problem fixed. I can't remember exactly whichone fixed it but its one of them. Let us know if it works.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Scheduled Downtime still sends notifications

Post by sreinhardt »

You can remove S from the notification options on the services and contact service preferences, however this really should only disable the downtime start and stop notifications, not other notifications while in downtime.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked