Skip to content

Commit

Permalink
Merge pull request #9259 from Icinga/bugfix/event-handler-spamming-8704
Browse files Browse the repository at this point in the history
Checkable#ExecuteEventHandler(): don't outsource event command run twice
  • Loading branch information
julianbrost authored Feb 25, 2022
2 parents db321b9 + 74935da commit 9d3eba8
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 9d3eba8

Please sign in to comment.