Skip to content

Commit

Permalink
Checkable#ProcessCheckResult(): don't overwrite check source
Browse files Browse the repository at this point in the history
refs #7948
  • Loading branch information
Al2Klimov committed Aug 7, 2020
1 parent 338d0aa commit aeb0a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/checkable-check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
if (cr->GetExecutionEnd() == 0)
cr->SetExecutionEnd(now);

if (!origin || origin->IsLocal())
if ((!origin || origin->IsLocal()) && cr->GetCheckSource().IsEmpty())
cr->SetCheckSource(IcingaApplication::GetInstance()->GetNodeName());

Endpoint::Ptr command_endpoint = GetCommandEndpoint();
Expand Down

0 comments on commit aeb0a00

Please sign in to comment.