2012R1.4 CCM setlocale en_EN causes log warnings & emails
Posted: Fri Jan 25, 2013 6:12 pm
We are evaluating Nagios XI 2012 and have encountered a minor issue that doesn't seem to impact functionality...but it's a concern.
The server is CentOS 6.3 x64, manually installed, with admittedly more than the base set of RPMs (I've tried two different installations, one with a blend of server and desktop packages, and again with only the following: @base, @core, @debugging, @emacs, bind, screen, and xorg-x11-xauth).
All the basic installation and setup steps went smoothly, but making changes in the CCM leads to log entries in /var/log/httpd/error_log:
There are also emails generated for these issues (copied here in the order they were received):
To generate these, I took the fresh Nagios XI environment, completed all essential configs, added a guest user, set automatic logins, then entered the CCM. I selected 'Monitoring: Host Groups' and enabled the Windows Servers group, which generated the first three jobs and their errors. I entered the legacy CCM and added a VMware Servers group, which produced no errors. I returned to the new CCM, copied the VMware Servers group (one job with an error), and then deleted the copy (two jobs, both with errors).
I downloaded the x64 VMware Nagios XI 2012R1.4 VMware appliance and fired it up, but it demonstrated none of this behavior. I'm at a loss to say what is different about my environment.
Here is some system output that may be useful:
I think these settings are the same on the VM appliance.
The server is CentOS 6.3 x64, manually installed, with admittedly more than the base set of RPMs (I've tried two different installations, one with a blend of server and desktop packages, and again with only the following: @base, @core, @debugging, @emacs, bind, screen, and xorg-x11-xauth).
All the basic installation and setup steps went smoothly, but making changes in the CCM leads to log entries in /var/log/httpd/error_log:
Code: Select all
job 1 at 2013-01-25 16:36
job 2 at 2013-01-25 16:36
sh: warning: setlocale: LC_ALL: cannot change locale (en_EN)
job 3 at 2013-01-25 16:36
sh: warning: setlocale: LC_ALL: cannot change locale (en_EN)
job 4 at 2013-01-25 16:49
sh: warning: setlocale: LC_ALL: cannot change locale (en_EN)
job 5 at 2013-01-25 16:49
sh: warning: setlocale: LC_ALL: cannot change locale (en_EN)
job 6 at 2013-01-25 16:49Code: Select all
From Subject Received Size
Apache Output from your job 1 4:37 PM 6 KB
This account is currently not available.
From Subject Received Size
Apache Output from your job 2 4:37 PM 6 KB
This account is currently not available.
From Subject Received Size
Apache Output from your job 3 4:37 PM 6 KB
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN): No such file or directory
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN) This account is currently not available.
From Subject Received Size
Apache Output from your job 4 4:49 PM 6 KB
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN): No such file or directory
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN) This account is currently not available.
From Subject Received Size
Apache Output from your job 5 4:50 PM 6 KB
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN): No such file or directory
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN) This account is currently not available.
From Subject Received Size
Apache Output from your job 6 4:50 PM 6 KB
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN): No such file or directory
sh: line 5: warning: setlocale: LC_ALL: cannot change locale (en_EN) This account is currently not available.I downloaded the x64 VMware Nagios XI 2012R1.4 VMware appliance and fired it up, but it demonstrated none of this behavior. I'm at a loss to say what is different about my environment.
Here is some system output that may be useful:
Code: Select all
[root@qailmon01 ~]# locale
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=Code: Select all
[root@qailmon01 ~]# locale -a | grep en_ENCode: Select all
[root@qailmon01 ~]# cat /etc/locales.conf
[default]
date format = %b %e %Y %I:%M:%S:%z%p
[en_US]
date format = %b %e %Y %I:%M:%S:%z%p
language = us_english
charset = iso_1
[es_ES]
date format = %b %d %Y %I:%M%p
language = spanish
charset = iso_1
[pt_BR]
date format = %d/%m/%Y %H:%M
language = Portuguese
charset = iso_1
[it_IT]
date format = %d/%m/%Y %H:%M
language = Italiano
charset = iso_1