Werk #11796: mk_logwatch: fix "cannotopen" message for a large number of files

Component Checks & agents
Title mk_logwatch: fix "cannotopen" message for a large number of files
Date Apr 7, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When logwatch was configured to monitor a large number of files messages like "[[[file_name:cannotopen]]]" may appear in the output of the plugin for all files above a certain threshold. This error was caused by a file handle leak and is fixed with this werk.

To the list of all Werks