Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 634310bfbf7c2cfef2d3e004b33bffaf60263bff
https://github.com/tribe29/checkmk/commit/634310bfbf7c2cfef2d3e004b33bffaf6…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2021-11-03 (Wed, 03 Nov 2021)
Changed paths:
A .werks/13353
M agents/check_mk_agent.linux
Log Message:
-----------
13353 FIX Linux agent: Fix two localisation issues
On some systems, the linux agent tried to set invalid localisation
settings. For example, when <tt>C.utf8</tt> is not available, but
<tt>es_EC.utf8</tt> is, the agent still tried to set
<tt>C.utf8</tt>
as localisation, which resulted in the error
<tt>setlocale: LC_ALL: cannot change locale</tt>.
Furthermore, in the rare case where the <tt>locale</tt> or the
<tt>inpath</tt> command were not available, no localisation was set.
These cases now default to <tt>LC_ALL=C</tt>.
Closes #409
Change-Id: I55d692776fc2ac894c59b06b105a40dbddc6b91b