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

Component Agent bakery
Title mk_logwatch: Make agent plugin executable under Python 2
Date Aug 1, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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