#####5分钟改1分钟
使用cacti安装成功后,进入管理界面,在设置里rrdtool版本..我们这里选1.3.x,然后在轮询器中设置轮询间隔和Cron间隔为一分钟!在数据库在使用以下命令把所有数据模板的时间都改为一分钟,因为默认都是5分钟的!
DELETE FROM rra; -- 4 rows affected
INSERT INTO rra VALUES (1,'c21df5178e5c955013591239eb0afd46','Daily (1
Minute Average)',0.5,1,8000,86400);
INSERT INTO rra VALUES (2,'0d9c0af8b8acdc7807943937b3208e29','Weekly (30
Minute Average)',0.5,30,1600,604800);
INSERT INTO rra VALUES (3,'6fc2d038fb42950138b0ce3e9874cc60','Monthly (2
Hour Average)',0.5,120,1600,2678400);
INSERT INTO rra VALUES (4,'e36f3adb9f152adfa5dc50fd2b23337e','Yearly (1 Day
Average)',0.5,1440,1600,33053184);
UPDATE data_template_data SET rrd_step=60 WHERE rrd_step=300;
UPDATE data_template_rrd SET rrd_heartbeat=120 WHERE rrd_heartbeat=600;
UPDATE poller_item SET rrd_step = 60 WHERE rrd_step = 300;
在RRD路径结构上勾上以优化CACTI,然后删除旧的图像重新生成
然后在计划任务里添加* * * * * /usr/local/php/bin/php /usr/local/apache/htdocs/poller.php