From owner-freebsd-questions Thu Sep 16 16:29:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from loviatar.webcom.com (loviatar.webcom.com [209.1.28.41]) by hub.freebsd.org (Postfix) with ESMTP id 4C08B14FBC for ; Thu, 16 Sep 1999 16:29:42 -0700 (PDT) (envelope-from graeme@echidna.com) Received: from kigal.webcom.com (kigal.webcom.com [209.1.28.57]) by loviatar.webcom.com (8.9.1/8.9.1) with SMTP id QAA07537; Thu, 16 Sep 1999 16:29:41 -0700 Received: from [204.143.69.50] by inanna.webcom.com (WebCom SMTP 1.2.1) with SMTP id 45080644; Thu Sep 16 16:24 PDT 1999 Message-Id: <37E1A75E.1513@echidna.com> Date: Thu, 16 Sep 1999 19:28:46 -0700 From: Graeme Tait Organization: Echidna X-Mailer: Mozilla 2.02 (Win16; I) Mime-Version: 1.0 To: Ryan Thompson Cc: freebsd-questions@freebsd.org Subject: Re: Daily/weekly/monthly network through-traffic monitoring by the GB? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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