[icinga-checkins] icinga.org: icinga2/master: Bugfix: Use service name in status.dat ( rather than alias).

git at icinga.org git at icinga.org
Thu Jan 31 09:51:43 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Jan 31 09:51:37 2013 +0100

Bugfix: Use service name in status.dat (rather than alias).

---

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

diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp
index 3fd6fd1..70e1dfb 100644
--- a/components/compat/compatcomponent.cpp
+++ b/components/compat/compatcomponent.cpp
@@ -377,7 +377,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->GetAlias() << "\n"
+	   << "\t" << "service_description" << "\t" << service->GetName() << "\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