From owner-freebsd-isp@FreeBSD.ORG Mon Nov 6 13:24:09 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E02CD16A417 for ; Mon, 6 Nov 2006 13:24:09 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane.co.uk [62.140.220.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BD9343D45 for ; Mon, 6 Nov 2006 13:24:09 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id kA6DO2xl084887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Nov 2006 13:24:05 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <454F376B.9020107@unsane.co.uk> Date: Mon, 06 Nov 2006 13:23:55 +0000 From: Vince User-Agent: Thunderbird 1.5.0.7 (X11/20061017) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Marco_Gon=E7alves?= References: <007b01c701a1$80cf4c20$3000a8c0@marco> In-Reply-To: <007b01c701a1$80cf4c20$3000a8c0@marco> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-isp@freebsd.org Subject: Re: Log a network card traffic X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 13:24:10 -0000 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"