Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Nov 2006 13:23:55 +0000
From:      Vince <jhary@unsane.co.uk>
To:        =?ISO-8859-1?Q?Marco_Gon=E7alves?= <marco.goncalves@waynext.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Log a network card traffic
Message-ID:  <454F376B.9020107@unsane.co.uk>
In-Reply-To: <007b01c701a1$80cf4c20$3000a8c0@marco>
References:  <007b01c701a1$80cf4c20$3000a8c0@marco>

next in thread | previous in thread | raw e-mail | index | archive | help
Marco Gonçalves wrote:
> Hi list,
> 
> any thoughts about graphing in a nice MRTG all the traffic coming in and out from a network card using the simplest method possible ( and mininum cpu cycles possible). I think that runing SNMP is a bit too much just for getting this done.
> 
Hmm a compination of rrdtool and netstat -ib should be enough if you
just want traffic volume. netstat -ib will show in and out traffic in
bytes (it you want bits i guess just multiply by 8 first) If you use
pf/ipfw then maybe a pass rule and "pfctl -vs rules" and grep/sed/awk
or similar on the output (to be fair if you use pf then maybe just use
pfstat in ports.)

> Thanks in advance
> 
> 
> Marco Gonçalves
> Analista-Programador
> WayNext - web agency
> 
> [w] http://www.waynext.com
> [@] marco.goncalves@waynext.com
> [t] (+351) 21 424 0002
> [f] (+351) 21 019 2757
> 
> TagusPark, N.C., 238, Oeiras, Portugal
> _______________________________________________
> freebsd-isp@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?454F376B.9020107>