6.3.7 Specifying the output language
You must specify the output language for messages (English or Japanese).
- Organization of this subsection
(1) Specifying the LANG environment variable
The value specified in the kernel's LANG environment variable determines the message output language for HA Monitor.
To change from English to Japanese or vice versa, specify the LANG environment variable as follows:
-
To set the output language to English: LANG=C
-
To set the output language to Japanese (EUC): LANG=ja_JP.eucJP
-
To set the output language to Japanese (UTF-8); LANG=ja_JP.UTF-8
For details about specifying the output language when all the following conditions are satisfied, see (a) If the OS is RHEL7 or a later version:
-
The HA Monitor version is 01-65 or later.
-
If the OS is RHEL7 or a later version
-
The HA Monitor start command (monstart command) is used to start HA Monitor.
(2) Specifying output of Japanese messages when HA Monitor is automatically started at system startup
For notes on editing the Unit settings file and startup script /etc/rc.d/init.d/HAmon, see 6.3.2 Specifying system files.
(a) If the OS is RHEL7 or a later version
The language of messages that are output to syslog by HA Monitor that is automatically started at system startup depends on the value of the Environment entry under the [Service] section in the Unit settings file of HA Monitor.
To output messages in Japanese, add the LANG environment variable that specifies Japanese as the output language. The following shows an example. Add the underlined entry.
[Unit] Description=HA Monitor(power control) ... ... [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/sh -c '/opt/hitachi/HAmon/bin/HApwon >/dev/null 2>&1' ExecStop=/bin/sh -c '/opt/hitachi/HAmon/bin/HApwoff >/dev/null 2>&1' Environment="LANG=ja_JP.UTF-8" ... ... (omitted)
(b) If the OS is RHEL6
The language of messages that are output to syslog by HA Monitor that is automatically started at system startup depends on the language environment in which the kernel executes the startup script (/etc/rc.d/init.d/HAmon).
To output messages in Japanese, add the LANG environment variable that specifies Japanese as the output language to the HA Monitor startup script. The following shows an example. Add the underlined entry.
#!/bin/sh # # chkconfig: 2345 60 40 NOLOCALE=1 export LANG=ja_JP.UTF-8 PATH=/sbin:/usr/sbin:/usr/bin:/bin export PATH (omitted)