objects.cache: Service definitions should include the display_name property.

This commit is contained in:
Gunnar Beutner 2013-02-06 15:54:13 +01:00
parent 07e8565045
commit 39bd164625
1 changed files with 1 additions and 0 deletions

View File

@ -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"