Werk #11711: mk_logwatch: Fix plugin execution on Windows
Komponente | Agent bakery |
Titel | mk_logwatch: Fix plugin execution on Windows |
Datum | 01.12.2020 |
Checkmk Edition | Checkmk Enterprise (CEE) |
Checkmk-Version | 2.0.0b2 2.1.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
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.