https://blog.csdn.net/java_road_far/article/details/106434915
字体目录
zabbix 4.0:/usr/share/zabbix/fonts/
zabbix 4.2:/usr/share/zabbix/assets/fonts/
zabbix5.0:/usr/share/zabbix/assets/fonts
方式一
1:上传字体到
/usr/share/zabbix/assets/fonts目录下
2:把上传字体改名为graphfont
mv msyh graphfont
方式二
Win10操作系统 C:\Windows\Fonts目录下的任意字体,拷贝到/usr/share/zabbix/assets/fonts/目录下(如果是zabbix4.0请拷贝到/usr/share/zabbix/fonts/这个目录下),更改后缀为’.ttf’
微软雅黑 msyh
修改PHP配置
81 #define(‘ZBX_GRAPH_FONT_NAME’, ‘graphfont’); // font file name
122 define(‘ZBX_FONT_NAME’, ‘msyh’);
vim /usr/share/zabbix/include/defines.inc.php
define('ZBX_GRAPH_FONT_NAME', 'msyh'); // font file name
define('ZBX_FONT_NAME', 'msyh');
systemctl restart zabbix-server