[icinga-checkins] icinga.org: icinga2/master: Bugfix: Use service names instead of aliases.

git at icinga.org git at icinga.org
Fri Feb 1 10:52:11 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Feb  1 10:51:45 2013 +0100

Bugfix: Use service names instead of aliases.

---

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

diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp
index 75f93e4..662eeaa 100644
--- a/components/compat/compatcomponent.cpp
+++ b/components/compat/compatcomponent.cpp
@@ -339,7 +339,7 @@ void CompatComponent::DumpServiceStatus(ofstream& fp, const Service::Ptr& servic
 
 	fp << "servicestatus {" << "\n"
 	   << "\t" << "host_name=" << service->GetHost()->GetName() << "\n"
-	   << "\t" << "service_description=" << service->GetAlias() << "\n"
+	   << "\t" << "service_description=" << service->GetName() << "\n"
 	   << "\t" << "check_interval=" << service->GetCheckInterval() / 60.0 << "\n"
 	   << "\t" << "retry_interval=" << service->GetRetryInterval() / 60.0 << "\n"
 	   << "\t" << "has_been_checked=" << (service->GetLastCheckResult() ? 1 : 0) << "\n"
@@ -484,7 +484,7 @@ void CompatComponent::StatusTimerHandler(void)
 		vector<String> sglist;
 		BOOST_FOREACH(const Service::Ptr& service, sg->GetMembers()) {
 			sglist.push_back(service->GetHost()->GetName());
-			sglist.push_back(service->GetAlias());
+			sglist.push_back(service->GetName());
 		}
 
 		DumpStringList(objectfp, sglist);





More information about the icinga-checkins mailing list