[icinga-checkins] icinga.org: icinga2/master: API: Fix missing attributes for DowntimeTriggered event

git at icinga.org git at icinga.org
Wed Aug 17 16:57:50 CEST 2016


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Wed Aug 17 16:57:22 2016 +0200

API: Fix missing attributes for DowntimeTriggered event

fixes #12464

---

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

diff --git a/lib/icinga/apievents.cpp b/lib/icinga/apievents.cpp
index d04032c..baa6240 100644
--- a/lib/icinga/apievents.cpp
+++ b/lib/icinga/apievents.cpp
@@ -336,7 +336,7 @@ void ApiEvents::DowntimeTriggeredHandler(const Downtime::Ptr& downtime)
 	result->Set("type", "DowntimeTriggered");
 	result->Set("timestamp", Utility::GetTime());
 
-	result->Set("downtime", Serialize(downtime));
+	result->Set("downtime", Serialize(downtime, FAConfig | FAState));
 
 	BOOST_FOREACH(const EventQueue::Ptr& queue, queues) {
 		queue->ProcessEvent(result);



More information about the icinga-checkins mailing list