Werk #15696: Linux agent: timing problem with 5 minute check interval
Komponente | Checks & agents | ||||||
Titel | Linux agent: timing problem with 5 minute check interval | ||||||
Datum | 21.04.2023 | ||||||
Level | Kleine Änderung | ||||||
Klasse | Bugfix | ||||||
Kompatibilität | Inkompatibel - Manuelle Interaktion könnte erforderlich sein | ||||||
Checkmk versions & editions |
|
When setting the check interval of a Linux host to 5 minutes, you recently may have experienced sporadic connection resets. This results in a critical Check_MK service, showing a summary containing
[agent] Communication failed: [Errno 111] Connection refused
or similar.
The reason for this was that the agent controller checks for an active connection registry every 5 minutes and by that closes the socket for an instant.
Since this 5-minute timeout starts whenever a connection has been accepted successfully, there's a significant chance to exacly hit a request from a 5-minute check interval.
To fix this, the config reload is now done without closing the socket temporarily.
To apply this fix, you have to update agents once on affected hosts.
Since the agent communation only fails sporadically, this can be accomplished by an automatic agent update, if configured.