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
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.6.0p23 2.0.0p2 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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