From 74935dad7b2ef067f0e33c240c24668376167b53 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 24 Feb 2022 14:03:57 +0100 Subject: [PATCH] Checkable#ExecuteEventHandler(): don't outsource event command run twice refs #8704 --- lib/icinga/checkable-event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/checkable-event.cpp b/lib/icinga/checkable-event.cpp index 91b2a443d..2983be846 100644 --- a/lib/icinga/checkable-event.cpp +++ b/lib/icinga/checkable-event.cpp @@ -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");