From 139540b570ba832a452093b80cb5acdddd3b3fa0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 5 Mar 2015 21:19:04 +0100 Subject: [PATCH] Make sure we don't evaluate apply rules for fake hosts used in agent checks fixes #8117 --- lib/icinga/apievents.cpp | 4 ---- 1 file changed, 4 deletions(-) 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") {