#####5分鐘改1分鐘php
使用cacti安裝成功後,進入管理界面,在設置裏rrdtool版本..咱們這裏選1.3.x,而後在輪詢器中設置輪詢間隔和Cron間隔爲一分鐘!在數據庫在使用如下命令把全部數據模板的時間都改成一分鐘,由於默認都是5分鐘的!數據庫
DELETE FROM rra; -- 4 rows affected apache
INSERT INTO rra VALUES (1,'c21df5178e5c955013591239eb0afd46','Daily (1 ide
Minute Average)',0.5,1,8000,86400); 優化
INSERT INTO rra VALUES (2,'0d9c0af8b8acdc7807943937b3208e29','Weekly (30 spa
Minute Average)',0.5,30,1600,604800); it
INSERT INTO rra VALUES (3,'6fc2d038fb42950138b0ce3e9874cc60','Monthly (2 模板
Hour Average)',0.5,120,1600,2678400); class
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