07, Zabbix everyday problems Summary

Zabbix can set the Chinese localization, if garbled solution if the visit zabbix follows garbled history, the WEB interface garbled, the reason is because the database before importing is not UTF-8 character set, you need to modify the UTF-8 mode, as shown in FIG. :

MYSQL database modification method of the character set, Vim /etc/my.cnf add the following code segment configuration:

 

[mysqld]
character-set-server= utf8
[client]
default-character-set = utf8
[mysql]
default-character-set = utf8

 

Backup zabbix database, and delete the original database, re-create, and then import the backup of the database, modify the import of zabbix.sql file inside latin1 to utf8 , and then imported into zabbix library, to solve the garbage problem.

 

sed  -i  's/latin1/utf8/g'  zabbix.sql

 

If viewing graphs garbled screen when the monitor image when, as shown below:

 

 

From the windows under the control panel -> Fonts -> select a Chinese character, e.g. , " italics " as 13-30 below:

 

 

 

The font files cp to zabbix service dauntfonts directory, / var / the WWW / HTML / zabbix / Fonts , and STKAITI.TTF rename DejaVuSans.ttf , the best refresh Graph image, solve the garbage problem, as shown below:

 

 

 

Guess you like

Origin www.cnblogs.com/hackerlin/p/12660578.html