First Notification Delay Not Working
-
- Posts: 123
- Joined: Wed Feb 20, 2019 3:46 pm
First Notification Delay Not Working
I've modified the alert settings and set the first notification delay to 10m. After alarm is received no notification is sent at all. I see the trap in event log. Notification log doesn't contain anything for this trap. I'm sure I got something wrong somewhere. What information is needed to troubleshoot?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: First Notification Delay Not Working
This directive is likely not going to have the desired affect when used with passive services such as traps as the notification wouldn't be triggered until another check is performed (which would not happen until another trap is received)
From the Core docs:
From the Core docs:
If this directive is used notifications will be sent out after the next check is performed following the first_notification_delay time
-
- Posts: 123
- Joined: Wed Feb 20, 2019 3:46 pm
Re: First Notification Delay Not Working
That makes sense but I need something like this. Traps come and go but if a problem trap comes in and doesn't clear within x minutes then send a notification. I'm trying to not notify when a customer resets their system. Is there a way to delay the notification for a trap based on state and time active?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: First Notification Delay Not Working
I understand what you are looking for, but it simply isn't available for passive results such as traps.dslaughter wrote:That makes sense but I need something like this. Traps come and go but if a problem trap comes in and doesn't clear within x minutes then send a notification. I'm trying to not notify when a customer resets their system. Is there a way to delay the notification for a trap based on state and time active?
Usually an OK trap is send when such a problem is resolved.
In order for this to function as requested a new feature would first need to be added to Nagios Core
https://github.com/NagiosEnterprises/nagioscore/issues
-
- Posts: 123
- Joined: Wed Feb 20, 2019 3:46 pm
Re: First Notification Delay Not Working
That is disappointing. I guess I'll try to get this to work with an event handler. If that doesn't work I'll have to develop my own trap receiver/processor. My experience with feature request is they never get done. I'll open a request but I have no confidence it will be addressed. I don't think adding a delay to trap notifications is a big deal. If an event comes in no matter its origination should support delayed notification.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: First Notification Delay Not Working
Sure, an event handler could work but something will need to trigger it.dslaughter wrote:That is disappointing. I guess I'll try to get this to work with an event handler. If that doesn't work I'll have to develop my own trap receiver/processor. My experience with feature request is they never get done. I'll open a request but I have no confidence it will be addressed. I don't think adding a delay to trap notifications is a big deal. If an event comes in no matter its origination should support delayed notification.
-
- Posts: 123
- Joined: Wed Feb 20, 2019 3:46 pm
Re: First Notification Delay Not Working
You can lock this thread. Sorry it took so long to let you know. I'll wait to see if the change is made.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: First Notification Delay Not Working
Great!dslaughter wrote:You can lock this thread. Sorry it took so long to let you know. I'll wait to see if the change is made.
Locking thread