Find the answer to your Linux question:
Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    10

    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?

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    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...
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

  3. #3
    Just Joined!
    Join Date
    Jan 2005
    Location
    Toronto, ON, Canada
    Posts
    79
    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

  4. #4
    Just Joined!
    Join Date
    Feb 2005
    Posts
    10
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •