mirror of https://github.com/Icinga/icinga2.git
Register service and notification objects.
This commit is contained in:
parent
e8c61a578f
commit
c194ad1ca3
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue