[icinga-checkins] icinga.org: icinga2/master: Bugfix: Incorrect array index in ACKNOWLEDGE_HOST_PROBLEM command.

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


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

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

Bugfix: Incorrect array index in ACKNOWLEDGE_HOST_PROBLEM command.

---

 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 92ac697..447a80e 100644
--- a/lib/icinga/externalcommandprocessor.cpp
+++ b/lib/icinga/externalcommandprocessor.cpp
@@ -320,7 +320,7 @@ void ExternalCommandProcessor::AcknowledgeHostProblem(double, const vector<Strin
 	if (arguments.size() < 6)
 		BOOST_THROW_EXCEPTION(invalid_argument("Expected 6 arguments."));
 
-	bool sticky = Convert::ToBool(arguments[0]);
+	bool sticky = Convert::ToBool(arguments[1]);
 
 	Host::Ptr host = Host::GetByName(arguments[0]);
 





More information about the icinga-checkins mailing list