[icinga-checkins] icinga.org: icinga2/master: objects.cache: Service definitions should include the display_name property.

git at icinga.org git at icinga.org
Wed Feb 6 15:54:55 CET 2013


Module: icinga2
Branch: master
Commit: 39bd164625506d633f2fa718b4c0977df6b989e9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=39bd164625506d633f2fa718b4c0977df6b989e9

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Feb  6 15:54:13 2013 +0100

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

---

 components/compat/compatcomponent.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp
index 2ded037..65354c5 100644
--- a/components/compat/compatcomponent.cpp
+++ b/components/compat/compatcomponent.cpp
@@ -375,6 +375,7 @@ void CompatComponent::DumpServiceObject(ofstream& fp, const Service::Ptr& servic
 	fp << "define service {" << "\n"
 	   << "\t" << "host_name" << "\t" << service->GetHost()->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_interval" << "\t" << service->GetCheckInterval() / 60.0 << "\n"
 	   << "\t" << "retry_interval" << "\t" << service->GetRetryInterval() / 60.0 << "\n"





More information about the icinga-checkins mailing list