Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to measure the bandwidth of 4 specific sites. Is there a tool free available on the net that helps us achieve this?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

It depends what you mean by 'bandwidth'.

If you want to measure the available network bandwidth then a lot is going to depend on where you measure it from. And you're only going to get an accurate measurement by filling up the bandwidth. You'll also need to learn a lot about TCP tuning to understand any measurements you get.

If you mean how much bandwidth each site is using then have a look at mrtg or argus. This pre-suposes that each site runs on a seperate IP adress. For different vhosts on the same address you'd have to use something capable of reconciling protocol level information with packet level information like pastmon. OTOH if you just want a rough figure based on the content size (i.e. ignoring header size and packet retransmits) any of the free webserver log analysers should fit your needs - I use Awstats.

share|improve this answer
    
I'm referring to how much bandwidth each site is using. Thank you, mgrt looks like the tool to use. –  user33121 Apr 8 '11 at 9:54

If you want to monitor just the http/https traffic there is couple of easy solutions:

1) Create new log type for every different site (vhost) that contains only the date (in specific syntax you want) and the bytes from the transaction. After that you can easy parse that log file and put the data whereever you want. If you use apache here is an example for your vhost:

CustomLog /path/to/log-bytes "%{%m/%Y}t%l%B"

The output of that log should looks similar:

04/2011-22003
04/2011-2003
04/2011-99

2) There are many log analyzers such as awstats or webalizer. They also make graphs and gives you extended information about the visitors.

3) Look for mod_cband (again for apache). It's very flexible and easy for use. It was a dead project, but the creators bring it back.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.