zabbix server support chinese

zabbix server支持中文显示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
1.在windows系统下找到simkai.ttf(楷体)字体
C:Windows\Fonts\simkai.ttf

2.将simkai.ttf文件上传到zabbix-server服务器
[root@zabbix-server-company ~]# mkdir /etc/zabbix/zabbix_fonts
[root@zabbix-server-company ~]# ls -l /etc/zabbix/zabbix_fonts/simkai.ttf
-rw-r--r-- 1 root root 11785184 Jul 17 2016 /etc/zabbix/zabbix_fonts/simkai.ttf
/etc/zabbix/zabbix_fonts/simkai.ttf

3.检查zabbix-server字体存放位置
[root@zabbix-server-company zabbix]# ls -l /usr/share/zabbix/fonts/graphfont.ttf
lrwxrwxrwx 1 root root 33 May 9 17:28 /usr/share/zabbix/fonts/graphfont.ttf -> /etc/alternatives/zabbix-web-font
[root@zabbix-server-company zabbix]# ls -l /etc/alternatives/zabbix-web-font
lrwxrwxrwx 1 root root 38 May 9 17:28 /etc/alternatives/zabbix-web-font -> /usr/share/fonts/dejavu/DejaVuSans.ttf
[root@zabbix-server-company zabbix]# ls -l /usr/share/fonts/dejavu/DejaVuSans.ttf
-rw-r--r-- 1 root root 720012 Feb 27 2011 /usr/share/fonts/dejavu/DejaVuSans.ttf

4.重新进行软连接
[root@zabbix-server-company ~]# ln -sf /etc/zabbix/zabbix_fonts/simkai.ttf /usr/share/zabbix/fonts/graphfont.ttf
[root@zabbix-server-company ~]# ls -l /usr/share/zabbix/fonts/graphfont.ttf
lrwxrwxrwx 1 root root 35 Jun 12 18:08 /usr/share/zabbix/fonts/graphfont.ttf -> /etc/zabbix/zabbix_fonts/simkai.ttf

5.或者修改配置文件
[root@zabbix-server-company ~]# vim /usr/share/zabbix/include/defines.inc.php
将graphfont.ttf更改为simkai.ttf