Installing a new version of the Zabbix 2.2.X platform CENTOS6 and ubuntu14.4 may not be the same, with 14.4 of Ubuntu creating many soft links.
In this case, the same is to find defines.inc.php words, there will be a lot of problems, or replace only display color blocks, not explicit fonts, and even English does not show the situation, so we will follow the following steps to gather processing:
First, the version comes with the Chinese language support
1. Server-side Find zabbix/include/locales.inc.php file
2, modify the contents of locales.inc.php: ' zh_cn ' = = Array (' name ' = = (' Chinese (zh_cn) '), ' display ' = True), default is False, so do not display Chinese (ZH_CN). Save exit.
No need to restart, just refresh it,
Ii. Modification of Date.timezone
Find PHP.ini centos/under/etc/php.conf, Ubuntu under/etc/php5/apache2
Date.timezone= PRC or asia/beijing
Post-restart Apache2
sudo service apache2 restart
Third, modify the Zabbix graphic display font
View/usr/share/zabbix/fonts/under
Graphfont.ttf-/etc/alternatives/zabbix-frontend-font
Therefore, it can be concluded that the corresponding real font should be the link Zabbix-frontend-font
Check again below
lrwxrwxrwx 1 root root 47 October 22:34 Zabbix-frontend-font-/usr/share/fonts/truetype/ttf-dejavu/dejavusans.ttf
Modify it first remove sudo rm-rf zabbix-frontend-font
Rebuilding sudo ln-s/usr/share/fonts/truetype/ttf-dejavu/simkai.ttf Simkai.ttf
Of course, you can also modify defines.inc.php
Zabbix web-side/include/defines.inc.php
Click (here) to collapse or open
#define (' Zbx_font_name ', ' Graphfont ');
Define (' Zbx_font_name ', ' Simkai ');
#define (' Zbx_graph_font_name ', ' Graphfont ');
Define (' Zbx_graph_font_name ', ' Simkai ');
Where Simkai is the font name and does not contain TTF suffixes.
Done!!!
650) this.width=650; "title=" 20141018230512.jpg "alt=" wkiol1rcgrnqgk39aam0u_5nw3a987.jpg "src=" http://s3.51cto.com /wyfs02/m02/4c/a4/wkiol1rcgrnqgk39aam0u_5nw3a987.jpg "/>
This article is from the "Technical Achievement Self" blog, please make sure to keep this source http://gotusson.blog.51cto.com/692866/1565560
Problems in Chinese processing of zabbix.2.2 version under Ubuntu14.4 kylin system