diff --git a/lib/icinga/apievents.cpp b/lib/icinga/apievents.cpp index a7b0a31e9..52e23d062 100644 --- a/lib/icinga/apievents.cpp +++ b/lib/icinga/apievents.cpp @@ -1585,10 +1585,6 @@ Value ApiEvents::ExecuteCommandAPIHandler(const MessageOrigin& origin, const Dic host->SetExtension("agent_check", true); - static_pointer_cast(host)->OnStateLoaded(); - static_pointer_cast(host)->OnConfigLoaded(); - static_pointer_cast(host)->OnAllConfigLoaded(); - Dictionary::Ptr macros = params->Get("macros"); if (command_type == "check_command") {