Execute checks locally if command_endpoint == local endpoint

fixes #7863
This commit is contained in:
Michael Friedrich 2014-12-05 11:35:00 +01:00
parent 795b5b87d6
commit cc8fe684fe
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
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();
if (listener) {