简介:yabm, Yet Another Bandwidth Meter,使用图形化png文件的方式显示当前网卡的带宽使用情况。可在FreeBSD 4.10以上版本运行。在FreeBSD 4.10 ,4.11,5.3和6.0上测试过。
官方网站
http://shapeshifter.se/code/yabm/
使用文档:
使用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停止运行。
Freebsd上的port
Port: yabm-0.2.1
Path: /usr/ports/net-mgmt/yabm
Info: Yet Another Bandwidth Meter, somewhat resembles the Linux bwbar
Maint:
fli@shapeshifter.se
B-deps: png-1.2.8_2
R-deps: png-1.2.8_2
WWW:
http://shapeshifter.se/code/yabm/