mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Checkable::NotifyDowntimeEnd(): don't send Downtime end notification unless triggered
... for fixed Downtimes as well.
This commit is contained in:
parent
83cfb84fe0
commit
43e4ab4760
@ -256,8 +256,8 @@ void Checkable::NotifyDowntimeInternal(const Downtime::Ptr& downtime)
|
|||||||
|
|
||||||
void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
|
void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
|
||||||
{
|
{
|
||||||
/* don't send notifications for flexible downtimes which never triggered */
|
/* don't send notifications for downtimes which never triggered */
|
||||||
if (!downtime->GetFixed() && !downtime->IsTriggered())
|
if (!downtime->IsTriggered())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Checkable::Ptr checkable = downtime->GetCheckable();
|
Checkable::Ptr checkable = downtime->GetCheckable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user