Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 1999 19:28:46 -0700
From:      Graeme Tait <graeme@echidna.com>
To:        Ryan Thompson <freebsd@sasknow.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Daily/weekly/monthly network through-traffic monitoring by the GB?
Message-ID:  <37E1A75E.1513@echidna.com>
References:  <Pine.BSF.4.10.9909141521530.26833-100000@sasknow.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ryan Thompson wrote:
> 
> Hi everybody;
> 
> Does anyone know of a really good (and lightweight) network throughput
> monitor?  I am interested in knowing (in quantifiable units such as
> gigabytes) how much traffic is both coming IN to a specified interface and
> how much is going OUT over an interval of time, so that I can track
> network usage.


Well, I'm sure there's a better way, but I just use something like

netstat -I fxp0 -w 300 > file_199909161855_start &

varying the interval as desired - which is fine if you are satisfied with 
data on the aggregate in and out traffic for a particular interface.

I name the file according to the start time, so it's easy to figure the actual 
time of any given entry. (The timing does tend to slip a few seconds a day on 
my server with -w 300, more with shorter intervals.) Resource usage seems 
minimal, even running with a 1 second logging interval.

With a little manipulation with Unix utilities, or with a spreadsheet, I can 
generate some pretty useful statistics and graphs.



-- 
Graeme Tait - Echidna



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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