Page 1 of 1

notifications when the notification_period opens

Posted: Mon Jul 20, 2015 8:26 pm
by TheCase
Because of the way I have implemented PagerDuty, I have service notification_interval = 0

It seems logical to me, that if a service changes to non-OK outside of the notification window, and stays that way until the notification window opens again (9am, in my case) that it should notify then, as it has yet to send out *any* indication of a state change.

However, it does not work that way. I get no notification when the notification window opens again for services that went from good to critical when the notification window was closed (and stayed that way until the notification period was open). Is this by design? Am I forced to set a non-zero value for notification_interval? I really only need to be notified once for each service state change.

Re: notifications when the notification_period opens

Posted: Tue Jul 21, 2015 9:33 am
by jdalrymple
I wouldn't necessarily say it's by design so much as it's just the way it turned out. You could certainly post a feature request or even write a patch to change the behavior. In the meantime my best suggestion would be to run a script that submits custom notifications for all hosts/services in a not-OK state at the point in time when you come off no-pager hours.

http://old.nagios.org/developerinfo/ext ... and_id=134
http://old.nagios.org/developerinfo/ext ... and_id=135

Re: notifications when the notification_period opens

Posted: Tue Jul 21, 2015 11:17 am
by TheCase
Thank you for the quick reply and information. I'll see what I can do.

Re: notifications when the notification_period opens

Posted: Tue Jul 21, 2015 4:58 pm
by jdalrymple
jdalrymple wrote:You could certainly post a feature request or even write a patch to change the behavior.
Seriously - do one of those 2 things. https://github.com/NagiosEnterprises/nagioscore. I agree with you that the behavior you seek is desirable.

Beyond that, can we lock this topic since there are no immediate solutions being presented besides what I posted?