From 0a1a2869134f254b032f47e10ac1383e35feec2f Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 30 Sep 2020 10:30:21 +0200 Subject: [PATCH] Don't send reminder notifications before suppressed ones refs #8201 --- lib/notification/notificationcomponent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/notification/notificationcomponent.cpp b/lib/notification/notificationcomponent.cpp index aa9601201..60574b9b1 100644 --- a/lib/notification/notificationcomponent.cpp +++ b/lib/notification/notificationcomponent.cpp @@ -165,6 +165,10 @@ void NotificationComponent::NotificationTimerHandler() if ((service && service->GetState() == ServiceOK) || (!service && host->GetState() == HostUp)) continue; + /* Don't send reminder notifications before initial ones. */ + if (checkable->GetSuppressedNotifications() & NotificationProblem) + continue; + /* Skip in runtime filters. */ if (!reachable || checkable->IsInDowntime() || checkable->IsAcknowledged() || checkable->IsFlapping()) continue;