-
Bandwidth analysis
My name is toby this is my first post on this forum, so a big hello to all.
I have just started managing a redhat enterprise server and am slowly feeling my way around.
I have got 4 live websites running on my server and one in particular is using a lot of bandwidth. I agreed a limit of 2gb per month but have no way of monitoring what each site is using.
can anyone suggest the best way of getting a monthly bandwidth total for each domain?
-
Do the 4 web site reside on one machine?
If so, that would be a real pain to be able to track each separatly... I know that you can get bandwith with "grep" for a particular "eth*" but that would be "total bwith...
-
You can use tc for bandwidth management or your limit bandwidth.
For calculating bandwidth per domain is more tricky.
This are the ways i will try to attack it
Mapping diferent domains to diffrent port numbers and configuring apache to listen in those ports. Then using tc to shape traffic based on destination port number. Here are some hints:
http://www.auburn.edu/docs/apache/bind.html
http://httpd.apache.org/docs-2.0/vhosts/name-based.html
http://www.faqs.org/docs/Linux-HOWTO...ent-HOWTO.html
afrolinux
-
thanks i'll check all those out. i am currently playing with IPFM (internet protocol flow meter) http://robert.cheramy.net/ipfm/
I am new to linux and have spent the day installing it. I think it will do what i want if i can configure it properly.