我用流量能不能赠送显示显示博文uid不能为空

博客访问: 3352944
博文数量: 1037
博客积分: 12070
博客等级: 上将
技术积分: 11429
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: LINUX
简单命令用watch监控:
watch -n 1 "/sbin/ifconfig eth0 | grep bytes"
安装sysstat后用下面的命令:sudo apt-get install sysstat
sar -n DEV -u 1 10
netstat -s
当前硬盘读写速度
iostat -t 1 10
阅读(886) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。博客访问: 28716
博文数量: 16
博客积分: 350
博客等级: 一等列兵
技术积分: 180
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: 系统运维
cacti有的模板不能监控流量超过100M的网口,导致图像断断续续
我们可以通过rrdtool 来更改rrd文件。
现在进入查看该图像的rrd的位置console》Management》Data Source
首先查看1162.rrd的信息[root@cacti bin]# ./rrdtool info /var/www/html/cacti/rra/99/1162.rrd |morefilename = "/var/www/html/cacti/rra/99/1162.rrd"rrd_version = "0003"step = 60last_update = header_size = 3496ds[traffic_in].index = 0ds[traffic_in].type = "COUNTER"ds[traffic_in].minimal_heartbeat = 120ds[traffic_in].min = 0.e+00ds[traffic_in].max = 1.e+07ds[traffic_in].last_ds = "25"ds[traffic_in].value = 1.e+08ds[traffic_in].unknown_sec = 0ds[traffic_out].index = 1ds[traffic_out].type = "COUNTER"ds[traffic_out].minimal_heartbeat = 120ds[traffic_out].min = 0.e+00ds[traffic_out].max = 1.e+09ds[traffic_out].last_ds = "19"ds[traffic_out].value = 3.e+07ds[traffic_out].unknown_sec = 0rra[0].cf = "AVERAGE"rra[0].rows = 500
更改流量百兆为千兆
[root@cacti bin]# ./rrdtool tune /var/www/html/cacti/rra/99/1162.rrd -a traffic_out:[root@cacti bin]# ./rrdtool tune /var/www/html/cacti/rra/99/1162.rrd -a traffic_in:
再次查看1162.rrd的信息
[root@cacti bin]# ./rrdtool info /var/www/html/cacti/rra/99/1162.rrd |morefilename = "/var/www/html/cacti/rra/99/1162.rrd"rrd_version = "0003"step = 60last_update = header_size = 3496ds[traffic_in].index = 0ds[traffic_in].type = "COUNTER"ds[traffic_in].minimal_heartbeat = 120ds[traffic_in].min = 0.e+00ds[traffic_in].max = 1.e+09ds[traffic_in].last_ds = "25"ds[traffic_in].value = 1.e+08ds[traffic_in].unknown_sec = 0ds[traffic_out].index = 1ds[traffic_out].type = "COUNTER"ds[traffic_out].minimal_heartbeat = 120ds[traffic_out].min = 0.e+00ds[traffic_out].max = 1.e+09ds[traffic_out].last_ds = "19"ds[traffic_out].value = 3.e+07ds[traffic_out].unknown_sec = 0rra[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
阅读(2899) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。Android系统中查看某个应用当前流量的方法
一、查看原理:某个应用的网络流量数据保存在系统的/proc/uid_stat/$UID/tcp_rcv文件中。
二、步骤:
(1)查看当前应用的pid:通过ps命令查看当前应用的进程id,比如应用中心的获取方式为ps|grep
appstore,获取的值为10928
(2)查看当前应用的uid:进入目录/proc/$PID,查看status文件的UID值,比如应用中心的查看方式,cd
/proc/10928,cat status,获取的值为10006
(3)查看应用接收数据的累计值:进入目录/proc/uid_stat/$UID,查看tcp_rcv值,比如应用中心的查看方式,cd
/proc/uid_stat/10006,cat tcp_rcv。
(4)查看当前应用每秒钟的流量值:通过一秒钟间隔打印两次tcp_rcv值计算差值方式获取,通过自动化的方式获取的值比较准确。
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。}

我要回帖

更多关于 新浪博客不能发博文 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信