让CACTI支持中文显示
1.安装中文字体
yum -y install fonts-chinese
2.设置apache,使得用户录入的中文保存为UTF8格式,并且让rrdtool的locale为zh_CN.utf8
DirectoryIndex index.php index.html
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
AddDefaultCharset UTF-8 增加的
ServerName cacti.viyin.net
ServerAdmin test@admin.com
DocumentRoot “/home/cacti/www”
3.apache指定locale
vim /usr/local/apache/bin/apachectl
HTTPD_LANG=zh_CN.uft8
4.重启apache
/usr/local/apache/bin/apachectl -k restart
5.设置cacit-rrdtool
在cacti的WEB界面选择:Console -> Cacti Settings -> Paths 标签中的:
RRDTool Default Font Path: /usr/share/fonts/chinese/TrueType/msyh.ttf