From dedd4256c1b6ff9e5fc88e79e2c60a7b31d1e14a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 1 Feb 2013 10:51:45 +0100 Subject: [PATCH] Bugfix: Use service names instead of aliases. --- components/compat/compatcomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp index 75f93e468..662eeaa3d 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 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);