]> granicus.if.org Git - icinga2/commitdiff
Change which instance is responsible for initiating notifications in a HA setup
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 14 Jun 2016 05:57:52 +0000 (07:57 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 14 Jun 2016 05:57:52 +0000 (07:57 +0200)
refs #9242

lib/icinga/checkable-check.cpp

index fc5e88e8df32a387659472cb993a047675ce4ce7..4e64d925688936820d88776700a8795f2940fd61 100644 (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) {