Werk #11711: mk_logwatch: Fix plugin execution on Windows

Component Agent Bakery
Title mk_logwatch: Fix plugin execution on Windows
Date Dec 1, 2020
Checkmk Editon Checkmk Enterprise (CEE)
Checkmk Version 2.1.0i1 2.0.0b2
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

If the mk_logwatch agent plugin was used no Agent Output was created and the HW-/SW Inventory would fail aswell. Therefore the agent plugin could not be used for Windows.

The reasons for that were:

In Python 3 sys.stdout returns \r\n as linebreak for Windows. Checkmk can't handle this therefore we removed it by replacing the default sys.stdout. The win32api module could not be imported because pywin32 was not installed. Now pywin32 is installed by default.

To the list of all Werks