diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 977d0ee3e..9f139e540 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -818,7 +818,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object, execMessage->Set("method", "event::ExecuteCommand"); execMessage->Set("params", execParams); - listener->RelayMessage(origin, checkable, execMessage, true); + listener->RelayMessage(origin, endpointPtr->GetZone(), execMessage, true); } Dictionary::Ptr result = new Dictionary();