first_notification_delay does not suppress recovery alert

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
fasterfourier
Posts: 16
Joined: Mon Sep 24, 2018 4:36 pm

first_notification_delay does not suppress recovery alert

Post by fasterfourier »

Hello, I have recently updated my Nagios 4.1.0 installation to 4.4.2. In some cases, I have a first_notification_delay directive configured for services. In the previous nagios version, it appears that both warning/critical AND recovery notifications were suppressed during the first_notification_delay period. In 4.4.2, it appears that only the literal "first" notification is suppressed, but a subsequent recovery is not. Therefore, we get random recovery alerts with no corresponding warning or critical alert if there is an outage and a recovery that both occur within the time defined in first_notification_delay.

Any ideas here for how to suppress these random recovery alerts?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: first_notification_delay does not suppress recovery aler

Post by scottwilkerson »

I believe this to be resolved in the maint branch on Github
https://github.com/NagiosEnterprises/na ... tree/maint
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
fasterfourier
Posts: 16
Joined: Mon Sep 24, 2018 4:36 pm

Re: first_notification_delay does not suppress recovery aler

Post by fasterfourier »

Is this what you're referencing?

4.4.3 - 2018-XX-XX
------------------
FIXES
* Fixed services sending recovery emails when they recover if host in down state (#572) (Scott Wilkerson)

If so, our case doesn't exactly match that since the host is not in the down state.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: first_notification_delay does not suppress recovery aler

Post by scottwilkerson »

It is but the description in the log doesn't list every case that was affected.

In reality, what was changed was we fixed prematurely sending recovery emails before all the rest of the logic that would have suppressed them was executed.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
fasterfourier
Posts: 16
Joined: Mon Sep 24, 2018 4:36 pm

Re: first_notification_delay does not suppress recovery aler

Post by fasterfourier »

Gotcha. Thanks for the details--I'll give that a try.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: first_notification_delay does not suppress recovery aler

Post by scottwilkerson »

fasterfourier wrote:Gotcha. Thanks for the details--I'll give that a try.
Let us know if the problem persists
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked