From c194ad1ca35c8f7a3ccb28804ecbc41f9945708e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 30 Aug 2013 15:09:42 +0200 Subject: [PATCH] Register service and notification objects. --- lib/icinga/host.cpp | 1 + lib/icinga/service-notification.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp index 5cbc2f021..2376e64c5 100644 --- a/lib/icinga/host.cpp +++ b/lib/icinga/host.cpp @@ -245,6 +245,7 @@ void Host::UpdateSlaveServices(void) builder->AddExpressionList(svc_exprl); ConfigItem::Ptr serviceItem = builder->Compile(); + serviceItem->Register(); DynamicObject::Ptr dobj = serviceItem->Commit(); dobj->OnConfigLoaded(); } diff --git a/lib/icinga/service-notification.cpp b/lib/icinga/service-notification.cpp index f4b7685f3..ba97c02ea 100644 --- a/lib/icinga/service-notification.cpp +++ b/lib/icinga/service-notification.cpp @@ -193,6 +193,7 @@ void Service::UpdateSlaveNotifications(void) builder->AddExpressionList(nfc_exprl); ConfigItem::Ptr notificationItem = builder->Compile(); + notificationItem->Register(); DynamicObject::Ptr dobj = notificationItem->Commit(); dobj->OnConfigLoaded(); }