mirror of https://github.com/Icinga/icinga2.git
parent
b9f26bc59f
commit
7231e9db9f
|
@ -122,12 +122,12 @@ void ClusterZoneCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const Che
|
||||||
bytesReceivedPerSecond += endpoint->GetBytesReceivedPerSecond();
|
bytesReceivedPerSecond += endpoint->GetBytesReceivedPerSecond();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!connected) {
|
if (connected) {
|
||||||
cr->SetState(ServiceCritical);
|
|
||||||
cr->SetOutput("Zone '" + zoneName + "' is not connected. Log lag: " + Utility::FormatDuration(zoneLag));
|
|
||||||
} else {
|
|
||||||
cr->SetState(ServiceOK);
|
cr->SetState(ServiceOK);
|
||||||
cr->SetOutput("Zone '" + zoneName + "' is connected. Log lag: " + Utility::FormatDuration(zoneLag));
|
cr->SetOutput("Zone '" + zoneName + "' is connected. Log lag: " + Utility::FormatDuration(zoneLag));
|
||||||
|
} else {
|
||||||
|
cr->SetState(ServiceCritical);
|
||||||
|
cr->SetOutput("Zone '" + zoneName + "' is not connected. Log lag: " + Utility::FormatDuration(zoneLag));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check whether the thresholds have been resolved and compare them */
|
/* Check whether the thresholds have been resolved and compare them */
|
||||||
|
|
Loading…
Reference in New Issue