Werk #14548: mk_logwatch: Make agent plugin executable under Python 2

Component Agent bakery
Title <tt>mk_logwatch</tt>: Make agent plugin executable under Python 2
Date Aug 1, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0p10
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Werk 14451 introduced a regression which made the logwatch agent plugin crash under Python 2. The "Check_MK" service of affected hosts reported "Missing monitoring data for plugins: logwatch". The error message thrown by the plugin when executed directly on the host read

Traceback (most recent call last):
...
ValueError: invalid literal for int() with base 10: ...

To the list of all Werks