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 <[EMAIL PROTECTED]> :

> 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
>  [EMAIL PROTECTED]
> 
> 
> 
> --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> [EMAIL PROTECTED]<br></div>
> <div>&nbsp;</div>
> </body></html>
> 
> --50318887-POCO-84516347--
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-net" in the body of the message


Attachment: msg06073/pgp00000.pgp
Description: PGP signature

Reply via email to