mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
Checkable#ExecuteEventHandler(): don't outsource event command run twice
refs #8704
This commit is contained in:
parent
338d0aaa8c
commit
74935dad7b
@ -49,7 +49,7 @@ void Checkable::ExecuteEventHandler(const Dictionary::Ptr& resolvedMacros, bool
|
|||||||
|
|
||||||
ec->Execute(this, macros, useResolvedMacros);
|
ec->Execute(this, macros, useResolvedMacros);
|
||||||
|
|
||||||
if (endpoint) {
|
if (endpoint && !GetExtension("agent_check")) {
|
||||||
Dictionary::Ptr message = new Dictionary();
|
Dictionary::Ptr message = new Dictionary();
|
||||||
message->Set("jsonrpc", "2.0");
|
message->Set("jsonrpc", "2.0");
|
||||||
message->Set("method", "event::ExecuteCommand");
|
message->Set("method", "event::ExecuteCommand");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user