Sh: warning: setlocale: LC_ALL: cannot change locale (C.utf8): No such file or directory

Hi CheckMK’ers

Hope you are well. We use a few mrpe checks on some of our VM’s. But they have stopped working.

This is on Centos 7, latest.

We get the following error:

(check_cassandra_nodes.pl) cassandra_nodes 3 sh: warning: setlocale: LC_ALL: cannot change locale (C.utf8): No such file or directoryUNKNOWN: unrecognized output '/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.utf8): No such file or directory', nodetool output format may have changed, aborting, Please try latest version from https://github.com/harisekhon/nagios-plugins, re-run on command line with -vvv and if problem persists paste full output from -vvv mode in to a ticket requesting a fix/update at https://github.com/harisekhon/nagios-plugins/issues/new

So the issue seem to be this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1590680

/usr/bin/check_mk_agent unset the locales and try to set C.utf8, but that does not exsist anymore.

[root@somehost ~]# localectl list-locales | grep -i c.utf

es_EC.utf8

Any workaround for this?

Regards

Narra

Hey Narra,
well… It seems, that your Configuration on “ssh_config” and “sshd_config” is not correctly th send and receive all the LC_Locality…
I do that in this way (ssh_config): SendEnv LANG LC_*
(sshd_config): AcceptEnv LANG LC_*

AND!!! Please check your “locale.gen” under /etc if it the same on all computers, that you need /want.
I hope, this is helpful for you and please be free and ask again, if there any questions…

Matthias

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.