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 Edition | Checkmk Enterprise (CEE) |
Checkmk Version | 2.0.0b2 2.1.0b1 |
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.