mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
FireSuppressedNotifications(const Notification::Ptr&): don't send notifications while suppressed by checkable
... e.g. if a notification enters its time period (not suppressed anymore), but its checkable has entered a downtime (suppressed). refs #8509
This commit is contained in:
parent
5547488cd5
commit
f04387a973
@ -91,7 +91,7 @@ void FireSuppressedNotifications(const Notification::Ptr& notification)
|
|||||||
|
|
||||||
if ((!tp || tp->IsInside(Utility::GetTime())) && !checkable->IsLikelyToBeCheckedSoon()) {
|
if ((!tp || tp->IsInside(Utility::GetTime())) && !checkable->IsLikelyToBeCheckedSoon()) {
|
||||||
for (auto type : {NotificationProblem, NotificationRecovery, NotificationFlappingStart, NotificationFlappingEnd}) {
|
for (auto type : {NotificationProblem, NotificationRecovery, NotificationFlappingStart, NotificationFlappingEnd}) {
|
||||||
if (!(suppressedTypes & type))
|
if (!(suppressedTypes & type) || checkable->NotificationReasonSuppressed(type))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto notificationName (notification->GetName());
|
auto notificationName (notification->GetName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user