View Full Version : Network realtime traffic monitor
Does anyone here know any program to monitor your server traffic that run on FreeBSD 4.x and/or 5.x?
Thanks in advance
mikron15
12-16-2004, 16:28
mrtg?
http://www.section6.net/help/mrtghow.php
Vnstat is another program, that displays bw usuage on daily, weekly and monthly basis
MQ-James
12-16-2004, 16:50
I believe b4sh means a program like iftop/iptraf for linux as MRTG is 95th percentile, I did do a search on google but to no success, psyxakias is probably the best person to answer this question
actually i need realtime. i already have few mrtg customized graphs running together with my firewall/scripts system but need something that shows every second, not with 5 minutes delay.
Might wanna try trafshow. It's in the ports/net directory. :)
psyxakias
12-17-2004, 10:26
b4sh, in order to monitor bandwidth usage (not 'traffic' as you said) in FreeBSD you can simply use:
1) Ipfw count rules that you can implement to a shell script to count traffic per second on specific interface, ip, port or anything you might like.
2) Netstat that can show you interface's in/out bandwidth per second with proper parameters (check man page)
3) tcpstat accepts expressions (like tcpdump does, check man page) in order to check bandwidth on specific interface, ip, port. The difference with ipfw count is that tcpstat may not be really accurate in high pps bandwidth and in some rare cases may use too many resources causing your server dropping packets.
Remember, man pages and google is always your best friend in UNIX ;)
BaCkBuRn
01-07-2005, 21:16
try ntop works great!
http://www.ntop.org
-bb
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.