Change which instance is responsible for initiating notifications in a HA setup

refs #9242
This commit is contained in:
Gunnar Beutner 2016-06-14 07:57:52 +02:00
parent eb4aa4415c
commit a8209c1a1a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {