mirror of https://github.com/Icinga/icinga2.git
Execute checks locally if command_endpoint == local endpoint
fixes #7863
This commit is contained in:
parent
795b5b87d6
commit
cc8fe684fe
|
@ -259,7 +259,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||||
|
|
||||||
Endpoint::Ptr command_endpoint = GetCommandEndpoint();
|
Endpoint::Ptr command_endpoint = GetCommandEndpoint();
|
||||||
|
|
||||||
if (command_endpoint && GetExtension("agent_check")) {
|
if (command_endpoint && (Endpoint::GetLocalEndpoint() != command_endpoint) && GetExtension("agent_check")) {
|
||||||
ApiListener::Ptr listener = ApiListener::GetInstance();
|
ApiListener::Ptr listener = ApiListener::GetInstance();
|
||||||
|
|
||||||
if (listener) {
|
if (listener) {
|
||||||
|
|
Loading…
Reference in New Issue