mirror of https://github.com/Icinga/icinga2.git
objects.cache: Service definitions should include the display_name property.
This commit is contained in:
parent
07e8565045
commit
39bd164625
|
@ -375,6 +375,7 @@ void CompatComponent::DumpServiceObject(ofstream& fp, const Service::Ptr& servic
|
||||||
fp << "define service {" << "\n"
|
fp << "define service {" << "\n"
|
||||||
<< "\t" << "host_name" << "\t" << service->GetHost()->GetName() << "\n"
|
<< "\t" << "host_name" << "\t" << service->GetHost()->GetName() << "\n"
|
||||||
<< "\t" << "service_description" << "\t" << service->GetName() << "\n"
|
<< "\t" << "service_description" << "\t" << service->GetName() << "\n"
|
||||||
|
<< "\t" << "display_name" << "\t" << service->GetAlias() << "\n"
|
||||||
<< "\t" << "check_command" << "\t" << "check_i2" << "\n"
|
<< "\t" << "check_command" << "\t" << "check_i2" << "\n"
|
||||||
<< "\t" << "check_interval" << "\t" << service->GetCheckInterval() / 60.0 << "\n"
|
<< "\t" << "check_interval" << "\t" << service->GetCheckInterval() / 60.0 << "\n"
|
||||||
<< "\t" << "retry_interval" << "\t" << service->GetRetryInterval() / 60.0 << "\n"
|
<< "\t" << "retry_interval" << "\t" << service->GetRetryInterval() / 60.0 << "\n"
|
||||||
|
|
Loading…
Reference in New Issue