From 7439633965c7c9b2aeb9efd9ba8a9861b014a7f2 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 26 Feb 2016 14:31:32 +0100 Subject: [PATCH] Fix max number of args for DEL_DOWNTIME_BY_HOST_NAME The RegisterCommand call for DEL_DOWNTIME_BY_HOST_NAME was missing the max args parameter. This prevented the optional service name, start time and comment arguments to be passed. Signed-off-by: Michael Friedrich fixes #11240 --- lib/icinga/externalcommandprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/externalcommandprocessor.cpp b/lib/icinga/externalcommandprocessor.cpp index d5eff10a4..5552dd1af 100644 --- a/lib/icinga/externalcommandprocessor.cpp +++ b/lib/icinga/externalcommandprocessor.cpp @@ -215,7 +215,7 @@ void ExternalCommandProcessor::StaticInitialize(void) RegisterCommand("DEL_SVC_DOWNTIME", &ExternalCommandProcessor::DelSvcDowntime, 1); RegisterCommand("SCHEDULE_HOST_DOWNTIME", &ExternalCommandProcessor::ScheduleHostDowntime, 8); RegisterCommand("DEL_HOST_DOWNTIME", &ExternalCommandProcessor::DelHostDowntime, 1); - RegisterCommand("DEL_DOWNTIME_BY_HOST_NAME", &ExternalCommandProcessor::DelDowntimeByHostName, 1); + RegisterCommand("DEL_DOWNTIME_BY_HOST_NAME", &ExternalCommandProcessor::DelDowntimeByHostName, 1, 4); RegisterCommand("SCHEDULE_HOST_SVC_DOWNTIME", &ExternalCommandProcessor::ScheduleHostSvcDowntime, 8); RegisterCommand("SCHEDULE_HOSTGROUP_HOST_DOWNTIME", &ExternalCommandProcessor::ScheduleHostgroupHostDowntime, 8); RegisterCommand("SCHEDULE_HOSTGROUP_SVC_DOWNTIME", &ExternalCommandProcessor::ScheduleHostgroupSvcDowntime, 8);