mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
Warn about latency issues.
This commit is contained in:
parent
49c7cd27d2
commit
ee2c14414c
@ -130,6 +130,12 @@ void CheckerComponent::ResultTimerHandler(void)
|
|||||||
m_Services.push(service);
|
m_Services.push(service);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (min_latency > 5) {
|
||||||
|
stringstream latwarn;
|
||||||
|
latwarn << "We can't keep up with the checks: minimum latency is " << min_latency << " seconds";
|
||||||
|
Application::Log(LogWarning, "checker", latwarn.str());
|
||||||
|
}
|
||||||
|
|
||||||
stringstream msgbuf;
|
stringstream msgbuf;
|
||||||
msgbuf << "ResultTimerHandler: " << results << " results (" << failed << " failed); latency: avg=" << avg_latency / (results ? results : 1) << ", min=" << min_latency << ", max: " << max_latency;
|
msgbuf << "ResultTimerHandler: " << results << " results (" << failed << " failed); latency: avg=" << avg_latency / (results ? results : 1) << ", min=" << min_latency << ", max: " << max_latency;
|
||||||
Application::Log(LogInformation, "checker", msgbuf.str());
|
Application::Log(LogInformation, "checker", msgbuf.str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user