Werk #16165: check_mk_agent: Set LC_ALL before running the agent

Component Checks & agents
Title check_mk_agent: Set LC_ALL before running the agent
Date Jan 2, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p18 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p38 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, Checkmk agents would be run with a preset LC_ALL environment variable if neither C.UTF-8 or C.utf-8 locales were installed.

That led to invalid agent output and crashes in section parsing in multiple checks for some of the locales.

Linux, AIX, Solaris, FreeBSD and OpenWrt agents were affected.

Now, LC_ALL variable is set to C for the described case.

To the list of all Werks