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

Komponente Checks & agents
Titel check_mk_agent: Set LC_ALL before running the agent
Datum 02.01.2024
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.1.0p38 2.2.0p18 2.3.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks