mirror of https://github.com/Icinga/icinga2.git
parent
7b39591c6b
commit
5431eae116
|
@ -247,6 +247,10 @@ String Downtime::AddDowntime(const Checkable::Ptr& checkable, const String& auth
|
|||
attrs->Set("config_owner", scheduledDowntime);
|
||||
attrs->Set("entry_time", Utility::GetTime());
|
||||
|
||||
if (!scheduledDowntime.IsEmpty()) {
|
||||
attrs->Set("authoritative_zone", Zone::GetLocalZone()->GetName());
|
||||
}
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
tie(host, service) = GetHostService(checkable);
|
||||
|
|
|
@ -84,6 +84,7 @@ class Downtime : ConfigObject < DowntimeNameComposer
|
|||
[state] int legacy_id;
|
||||
[state] bool was_cancelled;
|
||||
[config] String config_owner;
|
||||
[config] String authoritative_zone;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue