Merge pull request #8242 from Icinga/bugfix/reminder-notifications-before-suppressed-8201

Don't send reminder notifications before suppressed ones
This commit is contained in:
Alexander Aleksandrovič Klimov 2020-10-14 11:03:28 +02:00 committed by GitHub
commit 876fa8ba97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,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;