2014/1/11

CACTI手動改一分鐘

FROM:http://wiki.yepn.net/cacti

spine代替cmd.php提高運行效率
yum -y install libtool.x86_64 libtool-ltdl-devel.x86_64 mysql-devel.x86_64 net-snmp-devel.x86_64
 
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7e.tar.gz
 
tar -zxvf  cacti-spine-0.8.7e.tar.gz
 
./configure && make && make install
 
### TEST
/usr/local/spine/bin/spine
每分鐘數據更新
1、更改cron.d設置
2、cacti管理界面中刷新時間更改為1分種
3、數據庫中template也需要更新,也可以修改Management -> date source -> RRAs
 
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;
 
 
 

沒有留言:

windows 無法拖動文件

原因:未知 症狀:windows點任何文件,都無法拖動到其他地方  解決方式: 來源: https://answers.microsoft.com/en-us/windows/forum/all/drag-and-drop-stopped-working/b73e4938-ca2...