查看字体配置# grep FONT_NAME /usr/share/zabbix/include/defines.inc.php -n(路径换成实际的:/var/www/html/zabbix/include/defines.inc.php)
45:define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
93:define('ZBX_FONT_NAME', 'graphfont');
确认字体名称是否可以替换(路径换成实际的:/var/www/html/zabbix/include/defines.inc.php)
# grep graphfont /usr/share/zabbix/include/defines.inc.php -n
45:define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
93:define('ZBX_FONT_NAME', 'graphfont');
执行快捷替换(换成实际的sed -i "s/DejaVuSans/msyh/g" /var/www/html/zabbix/include/defines.inc.php)
# sed -i "s/graphfont/msyh/g" /usr/share/zabbix/include/defines.inc.php
确认是否替换成功
# grep FONT_NAME /usr/share/zabbix/include/defines.inc.php -n
45:define('ZBX_GRAPH_FONT_NAME', 'msyh'); // font file name
93:define('ZBX_FONT_NAME', 'msyh');
字体配置修改成功后,刷新图形界面即可看到图形字体显示正常了。
9、服务器端agentd:
已经安装:启动问题
[root@localhost admin]# service zabbix_agentd restart Shutting down zabbix_agentd: [FAILED] Starting zabbix_agentd: /etc/init.d/functions: line 546: /usr/local/zabbix/zabbix/sbin/zabbix_agentd: No such file or directory
[FAILED]
通过提示发现目录错误,正确启动目录为:
/usr/local/zabbix/sbin/zabbix_agentd
解决:
1.进入zabbix_agentd配置文件
vim /etc/init.d/zabbix_agentd
2.修改BASEDIR选项
BASEDIR=/usr/local/zabbix