Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #15605: mk_filestats: Improve Handling of non-UTF-8 file paths

Component Checks & agents
Title mk_filestats: Improve Handling of non-UTF-8 file paths
Date Apr 18, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.2.0p9 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.1.0p33 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

Previously, the agent plugin mk_filestats.py would show an error such as

UnicodeDecodeError: 'utf8' codec can't decode byte 0xc4 in position 42: invalid continuation byte

if it encountered any file, whose file path cannot be encoded to UTF-8. With this werk, the plugin no longer crashes. Any non-UTF-8 sequence of bytes is replaced with U+FFFD. In particular, this affects the filters and grouping.

To the list of all Werks