[icinga-checkins] icinga.org: icinga2/master: Fix duplicate CheckResult messages for command_endpoint

git at icinga.org git at icinga.org
Tue Jul 19 17:37:48 CEST 2016


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Jul 19 17:36:14 2016 +0200

Fix duplicate CheckResult messages for command_endpoint

fixes #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 6dbfe10..bcd80db 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 (endpoint == checkable->GetCommandEndpoint())
+	if (Zone::GetLocalZone() == checkable->GetZone() && endpoint == checkable->GetCommandEndpoint())
 		checkable->ProcessCheckResult(cr);
 	else
 		checkable->ProcessCheckResult(cr, origin);



More information about the icinga-checkins mailing list