mirror of https://github.com/Icinga/icinga2.git
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:
commit
876fa8ba97
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue