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.
notifications when the notification_period opens
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: notifications when the notification_period opens
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
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
Thank you for the quick reply and information. I'll see what I can do.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: notifications when the notification_period opens
Seriously - do one of those 2 things. https://github.com/NagiosEnterprises/nagioscore. I agree with you that the behavior you seek is desirable.jdalrymple wrote:You could certainly post a feature request or even write a patch to change the behavior.
Beyond that, can we lock this topic since there are no immediate solutions being presented besides what I posted?
Last edited by tmcdonald on Tue Jul 21, 2015 5:05 pm, edited 1 time in total.
Reason: Fixed feature submission link
Reason: Fixed feature submission link