Measuring data transferred through an interface?

William Cooper williamcooper at data-storm.net
Mon Feb 10 07:36:31 GMT 2003


http://bsdvault.net/sections.php?op=viewarticle&artid=34

is a nice howto on setting up MRTG + SNMP 

I believe its based on getting it from the Ethernet interface also.

Regards

William Cooper

-----Original Message-----
From: freebsd-users-admin at uk.freebsd.org
[mailto:freebsd-users-admin at uk.freebsd.org] On Behalf Of Jonathan Belson
Sent: 09 February 2003 23:29
To: Matthew Seaman
Cc: freebsd-users at uk.freebsd.org
Subject: Re: Measuring data transferred through an interface?

Matthew Seaman wrote:
> If all you want is the total number of bytes transferred, you can run:
> 
>     % netstat -ib
> 
> to get packet and byte IO counts since the last reboot.  A script to
> convert that into daily usage is left as an exercise for the student.

Cool, I'll try that.

> There's also mrtg and/or rrdtool (both in ports) which will give you
> some nice graphs showing activity --- mrtg runs by using SNMP to query
> the traffic counters for the interface, and generating graphs for

These programs seem to assume that I have a SNMP capable router - is
there any way to make it get data from an ethernet interface?


--Jon

http://www.witchspace.com


------ FreeBSD UK Users' Group  -  Mailing List ------
http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users






More information about the Ukfreebsd mailing list