mirror of https://github.com/Icinga/icinga2.git
parent
f3f113efd6
commit
0dba71ecaf
|
@ -197,10 +197,6 @@ void Host::UpdateSlaveServices(void)
|
||||||
ExpressionList::Ptr svc_exprl = make_shared<ExpressionList>();
|
ExpressionList::Ptr svc_exprl = make_shared<ExpressionList>();
|
||||||
item->GetLinkedExpressionList()->ExtractPath(path, svc_exprl);
|
item->GetLinkedExpressionList()->ExtractPath(path, svc_exprl);
|
||||||
|
|
||||||
std::vector<String> dpath;
|
|
||||||
dpath.push_back("templates");
|
|
||||||
svc_exprl->ErasePath(dpath);
|
|
||||||
|
|
||||||
builder->AddExpressionList(svc_exprl);
|
builder->AddExpressionList(svc_exprl);
|
||||||
|
|
||||||
ConfigItem::Ptr serviceItem = builder->Compile();
|
ConfigItem::Ptr serviceItem = builder->Compile();
|
||||||
|
|
|
@ -113,7 +113,9 @@ type Service {
|
||||||
|
|
||||||
%attribute any "*"
|
%attribute any "*"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
%attribute any "templates"
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServiceGroup {
|
type ServiceGroup {
|
||||||
|
@ -147,7 +149,9 @@ type Notification {
|
||||||
%attribute name(TimePeriod) "notification_period",
|
%attribute name(TimePeriod) "notification_period",
|
||||||
|
|
||||||
%attribute number "notification_type_filter",
|
%attribute number "notification_type_filter",
|
||||||
%attribute number "notification_state_filter"
|
%attribute number "notification_state_filter",
|
||||||
|
|
||||||
|
%attribute any "templates"
|
||||||
}
|
}
|
||||||
|
|
||||||
type User {
|
type User {
|
||||||
|
|
|
@ -149,10 +149,6 @@ void Service::UpdateSlaveNotifications(void)
|
||||||
ExpressionList::Ptr nfc_exprl = make_shared<ExpressionList>();
|
ExpressionList::Ptr nfc_exprl = make_shared<ExpressionList>();
|
||||||
item->GetLinkedExpressionList()->ExtractPath(path, nfc_exprl);
|
item->GetLinkedExpressionList()->ExtractPath(path, nfc_exprl);
|
||||||
|
|
||||||
std::vector<String> dpath;
|
|
||||||
dpath.push_back("templates");
|
|
||||||
nfc_exprl->ErasePath(dpath);
|
|
||||||
|
|
||||||
builder->AddExpressionList(nfc_exprl);
|
builder->AddExpressionList(nfc_exprl);
|
||||||
|
|
||||||
ConfigItem::Ptr notificationItem = builder->Compile();
|
ConfigItem::Ptr notificationItem = builder->Compile();
|
||||||
|
|
Loading…
Reference in New Issue