From owner-freebsd-net Wed May 22 9:47:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx2.nersc.gov (mx2.nersc.gov [128.55.6.22]) by hub.freebsd.org (Postfix) with ESMTP id 3A30937B401 for ; Wed, 22 May 2002 09:47:14 -0700 (PDT) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by mx2.nersc.gov (Postfix) with ESMTP id 8F7BA5932; Wed, 22 May 2002 09:47:13 -0700 (PDT) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id CA24D3B1AB; Wed, 22 May 2002 09:47:12 -0700 (PDT) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-net@FreeBSD.ORG Cc: Ivailo Tanusheff Subject: Re: Interface statistic In-Reply-To: Your message of Tue, 21 May 2002 22:32:00 PDT. Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1234646104P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 22 May 2002 09:47:12 -0700 From: Eli Dart Message-Id: <20020522164712.CA24D3B1AB@gemini.nersc.gov> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_Exmh_1234646104P Content-Type: text/plain; charset=us-ascii It's actually fairly easy to take the output of netstat -inb and put it into rrdtool. If you grep Link out of netstat -inb you get in and out packets and bytes, and you get error counters as well. My $0.02 --eli In reply to Larry Sica : > This is a multipart message in MIME format > > --50318887-POCO-84516347 > Content-Type: text/plain; charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > On Tue, 21 May 2002 14:58:22 +0300, Ivailo Tanusheff wrote: > >Hi, > > > >Can you tell me a way to collect per network interface statistic= > on > >my FreeBSD box? > >At this moment I'm using IPFilter accounting to collect needed > >information, but I think this way I'm collecting only= > information > >related to tcp, udp and icmp traffic. My purpose is to= > visualize > >this data in MRTG. > > > > You could capture traffic via tcpdump. I think MRTG can read= > tcpdump > output. I am going by memory right now though so some research= > would > be helpful. > > > > > -- Larry > > > Larry Sica > lsica1@cox.net > > > > --50318887-POCO-84516347 > Content-Type: text/html > Content-Transfer-Encoding: Quoted-Printable > > > > > >
On Tue, 21 May 2002 14:58:22 +0300, Ivailo Tanusheff= > wrote:
> >Hi,
> >
> >Can you tell me a way to collect per= > network interface statistic on
> >my FreeBSD box?
> >At this moment I'm using IPFilter= > accounting to collect needed
> >information, but I think this way I'm= > collecting only information
> >related to tcp, udp and icmp traffic.= > My purpose is to visualize
> >this data in MRTG.
> >
>
 
>
You could capture traffic via= > tcpdump.  I think MRTG can read tcpdump output.  I am= > going by memory right now though so some research would be= > helpful. 
>
 
>

>
>
>
-- Larry
>
 
>
 
>
Larry Sica
>
lsica1@cox.net
>
 
> > > --50318887-POCO-84516347-- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message --==_Exmh_1234646104P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE868uQLTFEeF+CsrMRAh1DAJ4s48Z6x0M7GNe9kCPegJYhOxHSqwCfX6TV MfFHEXUtPEA//SrCV5zkjMQ= =E5av -----END PGP SIGNATURE----- --==_Exmh_1234646104P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message