yabm – Yet Another Bandwidth Meteryabm is a yet another bandwidth meter/monitor, but developed for FreeBSD. Using the PNG image format it displays a graphical representation of the current bandwidth usage. It should run on any recent FreeBSD version >= 4.10, it has been tested on Features
Download
Available from the FreeBSD ports tree in net-mgmt/yabm Changes
In-action/screenshotGreen represents incoming traffic and blue represents outgoing traffic.
Installation/ConfigurationMake sure you’ve got libpng install, then installation is simple just type make make install There is a FreeBSD startup script in scripts/ to install it do the following The following only applies if you want to use the included startup script, you cd scripts make mv yabm.sh /usr/local/etc/rc.d chmod 0755 /usr/local/etc/rc.d/yabm.sh Example; To make yabm monitor interface fxp0, rl0 and ip-address 192.168.0.1 the following yabm_enable="YES" yabm_if0="fxp0" yabm_if0_output="/usr/local/www/bw-fxp0.png" yabm_if0_flags="-t" yabm_if1="rl0" yabm_if1_output="/usr/local/www/bw-rl0.png" yabm_if1_flags="-m 512k -t" yabm_alias0="192.168.0.1" yabm_alias0_output="/usr/local/www/bw-ip.png" yabm_alias0_flags="" Start/stop is done as with any startup script /usr/local/etc/rc.d/yabm.sh start Help/Usage informationThe following options are available, they should probably be self-explained. yabm 0.2.1 (Yet Another Bandwidth Meter)
Usage ./yabm [-i iface|-a alias] [options]
-i interface Interface-based measurement
-a ipnumber IP-address based measurement (only AF_INET)
Options
-s seconds Calculate average bandwidth over this many seconds (Default 60)
60 secs = 1 min/avg, 1 sec = realtime, 300 secs = 5 min/avg
-o file Output filename (and path) (Default bw.png)
-m bits[kmg] Device max speed (eg. 512k, 100m, 1g, etc) (Default ask device)
-b hex Background color (Default c0c0c0)
-n hex Incoming bar color (Default 69ff34)
-u hex Outgoing bar color (Default 0079b7)
-w pixels Image width (Default 640)
-h pixels Image height (Default 11)
-t Include text display of bandwidth utilization
-y Display bytes instead of bits
-k number How many markers to draw (Default 3)
-p file Pidfile (Default /var/run/yabm.pid)
ExampleThe above graph (in screenshot) is generated by yabm -i ed1 -m 512k -o ed1.png -t FAQQ: The image is always blank A: Well, try to use some bandwidth Q: Can this be used on other platforms than FreeBSD? A: Well, it might work for the other *BSDs but that’s nothing I’ve tested |

Entries (RSS)