mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
cfafaee5b0
commit
d4b5ada951
@ -476,8 +476,16 @@ void Checkable::ExecuteCheck(void)
|
|||||||
/* fail to perform check on unconnected endpoint */
|
/* fail to perform check on unconnected endpoint */
|
||||||
cr->SetState(ServiceUnknown);
|
cr->SetState(ServiceUnknown);
|
||||||
|
|
||||||
cr->SetOutput("Remote Icinga instance '" + endpoint->GetName() +
|
String output = "Remote Icinga instance '" + endpoint->GetName() + "' is not connected to ";
|
||||||
"' " + "is not connected to '" + Endpoint::GetLocalEndpoint()->GetName() + "'");
|
|
||||||
|
Endpoint::Ptr localEndpoint = Endpoint::GetLocalEndpoint();
|
||||||
|
|
||||||
|
if (localEndpoint)
|
||||||
|
output += "'" + localEndpoint->GetName() + "'";
|
||||||
|
else
|
||||||
|
output += "this instance";
|
||||||
|
|
||||||
|
cr->SetOutput(output);
|
||||||
|
|
||||||
ProcessCheckResult(cr);
|
ProcessCheckResult(cr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user