From 16e8e3cf4bd39576bb3f914c71a84d3ce1f666b0 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 9 May 2018 09:54:48 +0200 Subject: [PATCH] Fix problem with reminder notifications if the checkable is flapping --- lib/notification/notificationcomponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/notification/notificationcomponent.cpp b/lib/notification/notificationcomponent.cpp index ccc14c1de..3d7fbc60b 100644 --- a/lib/notification/notificationcomponent.cpp +++ b/lib/notification/notificationcomponent.cpp @@ -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") -- 2.40.0