Zabbix’s support for Chinese is not very good, but sometimes we still choose Chinese for management purposes. In the web interface monitored by zabbix, the Chinese under the graphic icon will display small squares. This is incorrect and requires downloading fonts. . For example, "Microsoft Yahei", "Microsoft Yahei.ttf" is named "msyh.ttf", and upload the downloaded font to /zabbix/fonts/fonts
Modify two places in the /zabbix/include/defines.inc.php file
define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); define('ZBX_FONT_NAME', 'DejaVuSans'); 改 define('ZBX_GRAPH_FONT_NAME', 'msyh'); define('ZBX_FONT_NAME', 'msyh');
Finally restart the web server.
The above is the detailed content of Solve the problem of garbled display of graphs and charts on Zabbix Chinese monitoring server. For more information, please follow other related articles on the PHP Chinese website!