Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2002 09:47:12 -0700
From:      Eli Dart <dart@nersc.gov>
To:        freebsd-net@FreeBSD.ORG
Cc:        Ivailo Tanusheff <I.Tanusheff@procreditbank.com>
Subject:   Re: Interface statistic 
Message-ID:  <20020522164712.CA24D3B1AB@gemini.nersc.gov>
In-Reply-To: Your message of Tue, 21 May 2002 22:32:00 PDT. <E17AOcR-0002lS-00@flamingo.mail.pas.earthlink.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
--==_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 <lsica1@cox.net> :

> 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
> 
> <HTML><HEAD>
> <BASEFONT FACE=3D"Arial" SIZE=3D"2" COLOR=3D"#000000">
> </HEAD>
> <BODY>
> <div>On Tue, 21 May 2002 14:58:22 +0300, Ivailo Tanusheff=
>  wrote:<br>
> <FONT COLOR=3D"#000080">&gt;Hi,</FONT><br>
> <FONT COLOR=3D"#000080">&gt;</FONT><br>
> <FONT COLOR=3D"#000080">&gt;Can you tell me a way to collect per=
>  network interface statistic on</FONT><br>
> <FONT COLOR=3D"#000080">&gt;my FreeBSD box?</FONT><br>
> <FONT COLOR=3D"#000080">&gt;At this moment I'm using IPFilter=
>  accounting to collect needed</FONT><br>
> <FONT COLOR=3D"#000080">&gt;information, but I think this way I'm=
>  collecting only information</FONT><br>
> <FONT COLOR=3D"#000080">&gt;related to tcp, udp and icmp traffic.=
>  My purpose is to visualize</FONT><br>
> <FONT COLOR=3D"#000080">&gt;this data in MRTG.</FONT><br>
> <FONT COLOR=3D"#000080">&gt;</FONT><br></div>
> <div>&nbsp;</div>
> <FONT COLOR=3D"#000080"></FONT><div>You could capture traffic via=
>  tcpdump.&nbsp; I think MRTG can read tcpdump output.&nbsp; I am=
>  going by memory right now though so some research would be=
>  helpful.&nbsp; <br></div>
> <div>&nbsp;</div>
> <div><br>
> <br>
> <br></div>
> <div>-- Larry<br></div>
> <div>&nbsp;</div>
> <div>&nbsp;</div>
> <div>Larry Sica<br></div>
> <div> lsica1@cox.net<br></div>
> <div>&nbsp;</div>
> </body></html>
> 
> --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




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