From 43e4ab47602333ee46b0c10dab7ce2df841713a0 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 ad9b9a239..6ec7f6f92 100644 --- a/lib/icinga/checkable.cpp +++ b/lib/icinga/checkable.cpp @@ -256,8 +256,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();