Skip to content

Commit

Permalink
Checkable#ExecuteEventHandler(): don't outsource event command run twice
Browse files Browse the repository at this point in the history
refs #8704
  • Loading branch information
Al2Klimov committed Feb 24, 2022
1 parent 338d0aa commit 74935da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/checkable-event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void Checkable::ExecuteEventHandler(const Dictionary::Ptr& resolvedMacros, bool

ec->Execute(this, macros, useResolvedMacros);

if (endpoint) {
if (endpoint && !GetExtension("agent_check")) {
Dictionary::Ptr message = new Dictionary();
message->Set("jsonrpc", "2.0");
message->Set("method", "event::ExecuteCommand");
Expand Down

0 comments on commit 74935da

Please sign in to comment.