Zabbix 分布式系统监视系统
zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。 zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。
错误描述
- "You are not able to choose some of the languages, because locales for them are not installed on the web server."
解决办法
原因是找不到语言包
$ sudo dpkg-reconfigure locales #查看系统已经安装的语言包
root@ubuntu:/etc/zabbix/backup# dpkg-reconfigure locales
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZM.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZM.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
没发现中文语言包.
安装中文语言包 ,先看下中文包叫什么 .
apt-cache search language-pack
出现一大堆语言包 找到中文的 zh
- ...... 省略
- language-pack-zh-hans - translation updates for language Simplified Chinese
- language-pack-zh-hans-base - translations for language Simplified Chinese
- language-pack-zh-hant - translation updates for language Traditional Chinese
- language-pack-zh-hant-base - translations for language Traditional Chinese
- ......省略
- apt-get install language-pack-zh-hans
$ sudo vim /usr/share/zabbix/include/locales.inc.php #找到源码文件
在文件中找到函数"getLocales()"
'en_GB' => array('name' => _('English (en_GB)'), 'display' => true),
可以把你不需要的语言设置为false,有些版本默认不支持中文,可以找到'zh_CN'这一行把flase改为true
最后保存文件,重启apache后问题解决
没有评论