Chinaunix首页 | 论坛 | 博客
  • 博客访问: 42582
  • 博文数量: 15
  • 博客积分: 350
  • 博客等级: 一等列兵
  • 技术积分: 180
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-12 20:37
文章分类

全部博文(15)

文章存档

2011年(15)

我的朋友

分类: 系统运维

2011-08-23 08:58:59

cacti有的模板不能监控流量超过100M的网口,导致图像断断续续
 
我们可以通过rrdtool 来更改rrd文件。
现在进入查看该图像的rrd的位置console》Management》Data Source
 
首先查看1162.rrd的信息
[root@cacti bin]# ./rrdtool info /var/www/html/cacti/rra/99/1162.rrd |more
filename = "/var/www/html/cacti/rra/99/1162.rrd"
rrd_version = "0003"
step = 60
last_update = 1313657227
header_size = 3496
ds[traffic_in].index = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 120
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+07
ds[traffic_in].last_ds = "67776062880125"
ds[traffic_in].value = 1.0566749437e+08
ds[traffic_in].unknown_sec = 0
ds[traffic_out].index = 1
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 120
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+09
ds[traffic_out].last_ds = "35061603641319"
ds[traffic_out].value = 3.9850907102e+07
ds[traffic_out].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 500
 
更改流量百兆为千兆
[root@cacti bin]# ./rrdtool tune /var/www/html/cacti/rra/99/1162.rrd -a traffic_out:1000000000
[root@cacti bin]# ./rrdtool tune /var/www/html/cacti/rra/99/1162.rrd -a traffic_in:1000000000
再次查看1162.rrd的信息
[root@cacti bin]# ./rrdtool info /var/www/html/cacti/rra/99/1162.rrd |more
filename = "/var/www/html/cacti/rra/99/1162.rrd"
rrd_version = "0003"
step = 60
last_update = 1313657227
header_size = 3496
ds[traffic_in].index = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 120
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+09
ds[traffic_in].last_ds = "67776062880125"
ds[traffic_in].value = 1.0566749437e+08
ds[traffic_in].unknown_sec = 0
ds[traffic_out].index = 1
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 120
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+09
ds[traffic_out].last_ds = "35061603641319"
ds[traffic_out].value = 3.9850907102e+07
ds[traffic_out].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 500
cpu的图像也是一样,可以同理修改
./rrdtool tune /var/www/html/cacti/rra/113/1591.rrd -a cpu_idle:1000
./rrdtool tune /var/www/html/cacti/rra/113/1592.rrd -a cpu_nice:1000
./rrdtool tune /var/www/html/cacti/rra/113/1593.rrd -a cpu_system:1000
./rrdtool tune /var/www/html/cacti/rra/113/1594.rrd -a cpu_user:1000
阅读(4263) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~