« 网络监测工具zabbix | Main | chinabsd.com重张开业 »

yabm,另一个带宽计量软件

yabm, Yet Another Bandwidth Meter,使用图形化png文件的方式显示当前网卡的带宽使用情况。可在FreeBSD 4.10以上版本运行。在FreeBSD 4.10 ,4.11,5.3和6.0上测试过。

使用ports安装:
#make
#make install

安装了脚本 /usr/local/etc/rc.d/yabm.sh

如果要监测端口fxp0和ip地址192.168.0.1,就在/etc/rc.conf文件中加入:
yabm_enable="YES"

yabm_if0="fxp0"
yabm_if0_output="/usr/local/www/bw-fxp0.png"
yabm_if0_flags="-m 512k -t" //这里的-m 参数表示显示的最大端口速率,默认是使用端口的实际最大速率,如果网卡是100Mbps,则很多时候网卡数据流量很小,图示数据会很不明显。

yabm_alias0="192.168.0.1"
yabm_alias0_output="/usr/local/www/bw-ip.png"
yabm_alias0_flags=""

使用/usr/local/etc/rc.d/yabm.sh start启动,/usr/local/etc/rc.d/yabm.sh stop停止运行。

监测结果如下图:

bw-xl0.png

TrackBack

TrackBack URL for this entry:
http://bsd.starhiway.net/cgi-bin/mt/mt-tb.cgi/148

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)