Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: 8d2ced6d87e03b3ed3e7d2cd06e58a6feb997744
https://github.com/Checkmk/checkmk/commit/8d2ced6d87e03b3ed3e7d2cd06e58a6fe…
Author: Rebekka Seltmann <rebekka.seltmann(a)checkmk.com>
Date: 2024-09-24 (Tue, 24 Sep 2024)
Changed paths:
A .werks/17088
M agents/plugins/mk_logwatch.py
Log Message:
-----------
17088 FIX mk_logwatch: Remove colored output support in debug mode
Until now the debug mode ("-d" flag) would color the lines of the mk_logwatch
output depending on their log level. This causes problems when processing the output,
leading to the e.g. `maxcontextlines` setting no longer being effective.
To improve the stability of the agent plugin, its output will no longer be colored.
If you need the output to be colored, you can do so via e.g.
mk_logwatch.py -d | sed -e 's/^C .*/\x1b[1;31m&\x1b[0m/' -e 's/^W
.*/\x1b[1;33m&\x1b[0m/' -e 's/^O .*/\x1b[1;32m&\x1b[0m/' -e 's/^I
.*/\x1b[1;34m&\x1b[0m/'
SUP-20390
Change-Id: If93893e7b33a8e847be3a00730eeee62ae755e7d
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications