mirror of https://github.com/Icinga/icinga2.git
Change which instance is responsible for initiating notifications in a HA setup
refs #9242
This commit is contained in:
parent
eb4aa4415c
commit
a8209c1a1a
|
@ -365,7 +365,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
|||
(is_volatile && !(IsStateOK(old_state) && IsStateOK(new_state))))
|
||||
ExecuteEventHandler();
|
||||
|
||||
if (send_downtime_notification && !origin)
|
||||
if (send_downtime_notification && IsActive())
|
||||
OnNotificationsRequested(this, in_downtime ? NotificationDowntimeStart : NotificationDowntimeEnd, cr, "", "", MessageOrigin::Ptr());
|
||||
|
||||
if (send_notification) {
|
||||
|
|
Loading…
Reference in New Issue