mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Make sure we don't evaluate apply rules for fake hosts used in agent checks
fixes #8117
This commit is contained in:
parent
9181d7ae05
commit
139540b570
@ -1585,10 +1585,6 @@ Value ApiEvents::ExecuteCommandAPIHandler(const MessageOrigin& origin, const Dic
|
|||||||
|
|
||||||
host->SetExtension("agent_check", true);
|
host->SetExtension("agent_check", true);
|
||||||
|
|
||||||
static_pointer_cast<DynamicObject>(host)->OnStateLoaded();
|
|
||||||
static_pointer_cast<DynamicObject>(host)->OnConfigLoaded();
|
|
||||||
static_pointer_cast<DynamicObject>(host)->OnAllConfigLoaded();
|
|
||||||
|
|
||||||
Dictionary::Ptr macros = params->Get("macros");
|
Dictionary::Ptr macros = params->Get("macros");
|
||||||
|
|
||||||
if (command_type == "check_command") {
|
if (command_type == "check_command") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user