mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
parent
6d53bd1c8f
commit
5daedd2dea
@ -303,19 +303,6 @@ void ServiceDbObject::OnConfigUpdate(void)
|
|||||||
/* update comments and downtimes on config change */
|
/* update comments and downtimes on config change */
|
||||||
AddComments(service);
|
AddComments(service);
|
||||||
AddDowntimes(service);
|
AddDowntimes(service);
|
||||||
|
|
||||||
/* service host config update */
|
|
||||||
Host::Ptr host = service->GetHost();
|
|
||||||
|
|
||||||
if (host->GetCheckService() != service)
|
|
||||||
return;
|
|
||||||
|
|
||||||
DbObject::Ptr dbobj = GetOrCreateByObject(host);
|
|
||||||
|
|
||||||
if (!dbobj)
|
|
||||||
return;
|
|
||||||
|
|
||||||
dbobj->SendConfigUpdate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServiceDbObject::OnStatusUpdate(void)
|
void ServiceDbObject::OnStatusUpdate(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user