1.升级过程中cacti中文全部显示为问号,字符集有问题,先保证数据库字符集正确,然后
在PHP內寫資料庫存取語法時,在mysql_select_db之前,加上mysql_query("SET NAMES UTF8");
在lib/adodb/drivers/adodb-mysql.inc.php文件中
2.边栏汉字正常图像不正常显示,图上的汉字显示不出来
在/usr/local/cacti/lib/functions.php文件
的开头加入
setlocale(LC_CTYPE,"zh_CN.utf8");
3.cacti图上值与时间不同步,时区问题
global.php文件添加时区
4.thold告警值不正常,出现负值
/usr/local/apache/htdocs/cacti/plugins/thold/includes/polling.php
$currentval =thold_get_currentval($t_item, $rrd_reindexed, $rrd_time_reindexed, $item,$currenttime);
------------------------->
$currentval =get_current_value($t_item[‘rra_id‘], $t_item[‘data_id‘], $cdef = 0);
5.thold出现乱码
修改thold_graph.php
header("Content-Type:text/html;charset=UTF-8");
cacti0.8.7e升级至0.8.8b过程问题汇总,布布扣,bubuko.com
原文:http://4429523.blog.51cto.com/4419523/1367409