From 997ad8622599e6d8cae1b43fdec67462942a3091 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 14 Dec 2020 11:31:59 +0100 Subject: [PATCH] Fix no re-notification for non OK state changes with time delay --- lib/icinga/notification.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 7555b457c..3db3f7fc2 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -287,6 +287,12 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe */ SetNextNotification(checkable->GetLastHardStateChange() + timesBegin + 1.0); + /* + * We need to set no more notifications to false, in case + * some notifications were sent previously + */ + SetNoMoreNotifications(false); + return; }