Werk #12548: Fix cmk --scan-parents on localized linux systems
|Component||Core & setup|
|Title||Fix cmk --scan-parents on localized linux systems|
|Date||Mar 15, 2021|
|Checkmk Editon||Checkmk Raw (CRE)|
|Checkmk Version||2.1.0i1 2.0.0p1|
|Compatibility||Compatible - no manual interaction needed|
The command "cmk --scan-parents" was detecting all hosts to be not pingable in previous Checkmk 2.0 releases on Checkmk servers that use a localized environment.
For example Linux systems that have the locale set to de_DE (LC_NUMERIC=de_DE.UTF-8) use "," as decimal separator which is then expected as parameter format by the underlying "ping" command.
This issue is solved by disabling inheritance of the the systems locale settings for Checkmk site environments. This should've been ensured by the shipped ".profile" file but the mechanism was not covering all cases. It now explicitly unsets already set locale related environment variables to disable the locales in the site.To the list of all Werks