From 0cca93543c58a3c5e3d100741d4f0e58a453575a Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 6 Jul 2021 12:50:44 +0200 Subject: [PATCH] Checkable::NotifyDowntimeEnd(): don't send Downtime end notification unless triggered ... for fixed Downtimes as well. --- lib/icinga/checkable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/icinga/checkable.cpp b/lib/icinga/checkable.cpp index 8f21e71f1..e8423d7df 100644 --- a/lib/icinga/checkable.cpp +++ b/lib/icinga/checkable.cpp @@ -232,8 +232,8 @@ void Checkable::NotifyDowntimeInternal(const Downtime::Ptr& downtime) void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime) { - /* don't send notifications for flexible downtimes which never triggered */ - if (!downtime->GetFixed() && !downtime->IsTriggered()) + /* don't send notifications for downtimes which never triggered */ + if (!downtime->IsTriggered()) return; Checkable::Ptr checkable = downtime->GetCheckable();