cannot change locale warning?
Posted: Tue Oct 23, 2018 12:00 am
Hi,
I have the same check running on 4 different servers and on 2 of the servers there is this setlocale warning shown below when running check_nrpe from Nagios:
[nagios@nagxi-01 ~]$ /usr/local/nagios/libexec/check_nrpe -H "HOST IP" -t 30 -c check_service
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
redis-server is running
Checking MySQL Proxy daemon... mysql-proxy is running.
cron is running.
Apache2 is running (pid 15753).
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Axess Configurator up and running.
Axess management system (Zeo) is running.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
collectd is running.
All services are running
Below is the output from running the check_service on the server itself:
[root@prd]# /usr/bin/sudo /usr/local/nagios/libexec/check_service.sh -o linux -t "/etc/init.d/axess_all_daemons status"
redis-server is running
Checking MySQL Proxy daemon... mysql-proxy is running.
cron is running.
Apache2 is running (pid 15753).
Axess Configurator up and running.
Axess management system (Zeo) is running.
collectd is running.
All services are running.
I have checked locale on both my Nagios XI and the remote host, both are showing same locale as below:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Any suggestions on where I can check for this issue? Thanks in advance
I have the same check running on 4 different servers and on 2 of the servers there is this setlocale warning shown below when running check_nrpe from Nagios:
[nagios@nagxi-01 ~]$ /usr/local/nagios/libexec/check_nrpe -H "HOST IP" -t 30 -c check_service
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
redis-server is running
Checking MySQL Proxy daemon... mysql-proxy is running.
cron is running.
Apache2 is running (pid 15753).
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Axess Configurator up and running.
Axess management system (Zeo) is running.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
collectd is running.
All services are running
Below is the output from running the check_service on the server itself:
[root@prd]# /usr/bin/sudo /usr/local/nagios/libexec/check_service.sh -o linux -t "/etc/init.d/axess_all_daemons status"
redis-server is running
Checking MySQL Proxy daemon... mysql-proxy is running.
cron is running.
Apache2 is running (pid 15753).
Axess Configurator up and running.
Axess management system (Zeo) is running.
collectd is running.
All services are running.
I have checked locale on both my Nagios XI and the remote host, both are showing same locale as below:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Any suggestions on where I can check for this issue? Thanks in advance