mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
parent
52f4d7a5f7
commit
1961c5dfe2
@ -60,12 +60,12 @@ void ClusterCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRe
|
|||||||
|
|
||||||
if (status->Get("num_not_conn_endpoints") > 0) {
|
if (status->Get("num_not_conn_endpoints") > 0) {
|
||||||
cr->SetState(ServiceCritical);
|
cr->SetState(ServiceCritical);
|
||||||
cr->SetOutput("Icinga 2 Cluster is running: Connected Endpoints: "+ Convert::ToString(status->Get("num_conn_endpoints")) + " (" +
|
|
||||||
connected_endpoints + ").");
|
|
||||||
} else {
|
|
||||||
cr->SetState(ServiceOK);
|
|
||||||
cr->SetOutput("Icinga 2 Cluster Problem: " + Convert::ToString(status->Get("num_not_conn_endpoints")) +
|
cr->SetOutput("Icinga 2 Cluster Problem: " + Convert::ToString(status->Get("num_not_conn_endpoints")) +
|
||||||
" Endpoints (" + not_connected_endpoints + ") not connected.");
|
" Endpoints (" + not_connected_endpoints + ") not connected.");
|
||||||
|
} else {
|
||||||
|
cr->SetState(ServiceOK);
|
||||||
|
cr->SetOutput("Icinga 2 Cluster is running: Connected Endpoints: "+ Convert::ToString(status->Get("num_conn_endpoints")) +
|
||||||
|
" (" + connected_endpoints + ").");
|
||||||
}
|
}
|
||||||
|
|
||||||
checkable->ProcessCheckResult(cr);
|
checkable->ProcessCheckResult(cr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user