[icinga-checkins] icinga.org: icinga2/master: Don' t forward SendNotifications messages to non-local zones

git at icinga.org git at icinga.org
Mon Jun 13 10:50:19 CEST 2016


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Jun 13 10:48:59 2016 +0200

Don't forward SendNotifications messages to non-local zones

refs #9242

---

 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 c97f7bb..02b2e79 100644
--- a/lib/icinga/clusterevents.cpp
+++ b/lib/icinga/clusterevents.cpp
@@ -775,7 +775,7 @@ void ClusterEvents::SendNotificationsHandler(const Checkable::Ptr& checkable, No
 	params->Set("author", author);
 	params->Set("text", text);
 
-	listener->RelayMessage(origin, checkable, message, true);
+	listener->RelayMessage(origin, ConfigObject::Ptr(), message, true);
 }
 
 Value ClusterEvents::SendNotificationsAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)



More information about the icinga-checkins mailing list