]> granicus.if.org Git - icinga2/commitdiff
Fix problem with reminder notifications if the checkable is flapping 6292/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 9 May 2018 07:54:48 +0000 (09:54 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 9 May 2018 07:54:48 +0000 (09:54 +0200)
lib/notification/notificationcomponent.cpp

index ccc14c1de76bbdf6fc33d3ca5a6a52ee87c0e716..3d7fbc60b63c4d32c4c32c9ef963fc9f224a1f93 100644 (file)
@@ -119,13 +119,14 @@ void NotificationComponent::NotificationTimerHandler()
                        if ((service && service->GetState() == ServiceOK) || (!service && host->GetState() == HostUp))
                                continue;
 
-                       if (!reachable || checkable->IsInDowntime() || checkable->IsAcknowledged())
+                       if (!reachable || checkable->IsInDowntime() || checkable->IsAcknowledged() || checkable->IsFlapping())
                                continue;
                }
 
                try {
                        Log(LogNotice, "NotificationComponent")
                                << "Attempting to send reminder notification '" << notification->GetName() << "'";
+
                        notification->BeginExecuteNotification(NotificationProblem, checkable->GetLastCheckResult(), false, true);
                } catch (const std::exception& ex) {
                        Log(LogWarning, "NotificationComponent")