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);
|
builder->AddExpressionList(svc_exprl);
|
||||||
|
|
||||||
ConfigItem::Ptr serviceItem = builder->Compile();
|
ConfigItem::Ptr serviceItem = builder->Compile();
|
||||||
|
serviceItem->Register();
|
||||||
DynamicObject::Ptr dobj = serviceItem->Commit();
|
DynamicObject::Ptr dobj = serviceItem->Commit();
|
||||||
dobj->OnConfigLoaded();
|
dobj->OnConfigLoaded();
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,6 +193,7 @@ void Service::UpdateSlaveNotifications(void)
|
||||||
builder->AddExpressionList(nfc_exprl);
|
builder->AddExpressionList(nfc_exprl);
|
||||||
|
|
||||||
ConfigItem::Ptr notificationItem = builder->Compile();
|
ConfigItem::Ptr notificationItem = builder->Compile();
|
||||||
|
notificationItem->Register();
|
||||||
DynamicObject::Ptr dobj = notificationItem->Commit();
|
DynamicObject::Ptr dobj = notificationItem->Commit();
|
||||||
dobj->OnConfigLoaded();
|
dobj->OnConfigLoaded();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue