mirror of https://github.com/Icinga/icinga2.git
Set check source only on local instance (empty authority).
Fixes #5824 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
bda7e9f362
commit
f3f157d60d
|
@ -239,14 +239,8 @@ void Service::ProcessCheckResult(const CheckResult::Ptr& cr, const String& autho
|
||||||
if (cr->GetExecutionEnd() == 0)
|
if (cr->GetExecutionEnd() == 0)
|
||||||
cr->SetExecutionEnd(now);
|
cr->SetExecutionEnd(now);
|
||||||
|
|
||||||
String check_source = cr->GetCheckSource();
|
|
||||||
|
|
||||||
if (check_source.IsEmpty()) {
|
|
||||||
if (authority.IsEmpty())
|
if (authority.IsEmpty())
|
||||||
cr->SetCheckSource(IcingaApplication::GetInstance()->GetNodeName());
|
cr->SetCheckSource(IcingaApplication::GetInstance()->GetNodeName());
|
||||||
else
|
|
||||||
cr->SetCheckSource(authority);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool reachable = IsReachable();
|
bool reachable = IsReachable();
|
||||||
bool notification_reachable = IsReachable(DependencyNotification);
|
bool notification_reachable = IsReachable(DependencyNotification);
|
||||||
|
|
Loading…
Reference in New Issue