Don't send reminder notifications before suppressed ones

refs #8201
This commit is contained in:
Alexander A. Klimov 2020-09-30 10:30:21 +02:00
parent e9b8fc234b
commit 0a1a286913
1 changed files with 4 additions and 0 deletions

View File

@ -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;