Werk #13838: TCP fetcher: don't connect if no data is needed

Komponente Checks & agents
Titel TCP fetcher: don't connect if no data is needed
Datum 29.03.2022
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.2.0i1 2.1.0b5 2.0.0p23
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

When fetching the data from a Checkmk agent (unix/windows), the fetcher would establish a connection before checking the cache file. If the cached data was still valid the connection has been closed.

These "unused" connections could lead to unwanted agent executions, which in turn can lead to lost logwatch messages or a flapping hardware/software inventory.

In Checkmk 2.1 it additionally lead to irritating errors in the log of cmk-agent-ctl on the monitored host, such as "Request failed: tls handshake eof" or "Request failed: Connection reset by peer (os error 104)".

Zur Liste aller Werks