Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > want to keep track on my web traffic in mb

want to keep track on my web traffic in mb
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2002
Location: Germany
Status: Offline
Reply With Quote
Jan 20, 2003, 01:52 PM
 
Hello!
Does anybody know a way or a programm that keeps track on my web traffic in mb. I mean just everything thats coming in and going out in kb/mb. I have to know this because I have a traffic limit contract and dont want to go over the limit.
Thanks
coffee
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Jan 20, 2003, 03:11 PM
 
Accurately tracking this can be harder than it seems.

At its simplest level:

netstat -ib

will show you the total volume of traffic over the interface since the machine booted.

It would be trivial to run this periodically and calculate the difference between the last reading and the current one.

However, this will count ALL traffic, including local traffic (which your ISP doesn't see), broadcast traffic, ARP, etc. and therefore may overstate the billable traffic.

An alternative is to parse your Apache logs to track http traffic, as well as generate pretty graphs of usage by time, day, referers, etc.
There's a number of packages that will do this including Analog
However, this won't take account of other traffic on your line that you are billed for.

In short, there's no perfect solution, but if all you're looking for is a ballpark then they may work.
Gods don't kill people - people with Gods kill people.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2