[icinga-checkins] icinga.org: icinga2/master: Fixed incorrect Service::GetByName call.

git at icinga.org git at icinga.org
Sat Feb 9 02:16:17 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Feb  9 02:16:02 2013 +0100

Fixed incorrect Service::GetByName call.

---

 lib/icinga/externalcommandprocessor.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/icinga/externalcommandprocessor.cpp b/lib/icinga/externalcommandprocessor.cpp
index 447a80e..bf6d52a 100644
--- a/lib/icinga/externalcommandprocessor.cpp
+++ b/lib/icinga/externalcommandprocessor.cpp
@@ -308,7 +308,7 @@ void ExternalCommandProcessor::RemoveSvcAcknowledgement(double, const vector<Str
 	if (arguments.size() < 2)
 		BOOST_THROW_EXCEPTION(invalid_argument("Expected 2 arguments."));
 
-	Service::Ptr service = Service::GetByName(arguments[1]);
+	Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]);
 
 	Logger::Write(LogInformation, "icinga", "Removing acknowledgement for service '" + service->GetName() + "'");
 	service->SetAcknowledgement(AcknowledgementNone);





More information about the icinga-checkins mailing list