We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk 1.6 has arrived! Learn more about it here!

Werk #10169: mk_logwatch: Fix 'random' missing logfile when monitoring through xinetd

ComponentChecks & Agents
Titlemk_logwatch: Fix "random" missing logfile when monitoring through xinetd
Date2019-09-21 13:15:22
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0,1.7.0i1
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

When executing the agent through xinetd, the environment is initialized in a different way than when executing the agent manually from the command line. This can lead to different locale settings making mk_logwatch use a different default encoding on linux systems.

Instead of the widely used UTF-8 encoding it assumed ANSI_X3.4-1968 encoding. With this encoding it was not possible to process UTF-8 encoded log files. The log file processing was terminated while reading the file, making the GUI show it as UNKNOWN service.

In the moment we see a ANSI_X3.4-1968 default encoding in mk_logwatch, we replace this with UTF-8 now.