安装完zabbix以后查看图形监控,会发现中括号中出现乱码。
1、安装字体,这里选择文泉驿微米黑字体
yum install -y wqy-microhei-fonts.noarch
2、更新字体
update-alternatives --install /usr/share/zabbix/assets/fonts/graphfont.ttf zabbix-web-font /usr/share/fonts/wqy-microhei/wqy-microhei.ttc 10
3、配置字体
update-alternatives --config zabbix-web-font
There are 2 programs which provide 'zabbix-web-font'.
Selection Command
*+ 1 /usr/share/fonts/dejavu/DejaVuSans.ttf
2 /usr/share/fonts/wqy-microhei/wqy-microhei.ttc
Enter to keep the current selection[+], or type selection number: 2
4、重启Zabbix-Server服务
systemctl restart zabbix-server