diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index f94289af5..b341def92 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -623,10 +623,6 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object, MacroProcessor::EscapeCallback(), nullptr, false ); - /* Check if resolved_command is not empty */ - if (resolved_command.IsEmpty()) - return ApiActions::CreateResult(400, "Command must not be empty."); - /* Check if resolved_command exists and it is of type command_type */ if (command_type == "CheckCommand") { if (!CheckCommand::GetByName(resolved_command))