[icinga-checkins] icinga.org: icinga2/master: Fix message routing for command_endpoint checks in satellite zones with > 2 instances

git at icinga.org git at icinga.org
Tue Jul 19 18:32:29 CEST 2016


Module: icinga2
Branch: master
Commit: 9075de67b1199a1c5eacb25297bfcd775bc7e71c
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=9075de67b1199a1c5eacb25297bfcd775bc7e71c

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Jul 19 18:32:01 2016 +0200

Fix message routing for command_endpoint checks in satellite zones with >2 instances

refs #12179

---

 lib/icinga/clusterevents.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/icinga/clusterevents.cpp b/lib/icinga/clusterevents.cpp
index bcd80db..7d5a867 100644
--- a/lib/icinga/clusterevents.cpp
+++ b/lib/icinga/clusterevents.cpp
@@ -173,7 +173,7 @@ Value ClusterEvents::CheckResultAPIHandler(const MessageOrigin::Ptr& origin, con
 		return Empty;
 	}
 
-	if (Zone::GetLocalZone() == checkable->GetZone() && endpoint == checkable->GetCommandEndpoint())
+	if (!checkable->IsPaused() && Zone::GetLocalZone() == checkable->GetZone() && endpoint == checkable->GetCommandEndpoint())
 		checkable->ProcessCheckResult(cr);
 	else
 		checkable->ProcessCheckResult(cr, origin);



More information about the icinga-checkins mailing list