Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 29, 2010 8:16 am 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Hello.

I have a set up with Centos and Apache and a few virtual servers. Linode gives me my total bandwith usage.

What would be the best way to know the consumption of bandwith per domain?

Thanks!


Top
   
PostPosted: Sat May 29, 2010 9:44 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
jcr wrote:
Hello.

I have a set up with Centos and Apache and a few virtual servers. Linode gives me my total bandwith usage.

What would be the best way to know the consumption of bandwith per domain?

Thanks!


Setup a stats package like awstats


Top
   
 Post subject:
PostPosted: Sat May 29, 2010 11:33 am 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Thanks for the answer.

I am wondering if there is a way to avoid analyzing the Apache's log file.


Top
   
 Post subject:
PostPosted: Sat May 29, 2010 12:00 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
jcr wrote:
Thanks for the answer.

I am wondering if there is a way to avoid analyzing the Apache's log file.


I don't think so, since the division between domains isn't happening until you get to apache.


Top
   
 Post subject:
PostPosted: Sat May 29, 2010 7:55 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
side note, apache has a mod sql log module, which allows you to log directly to a database..
i used that to work out domain usage for ages.. just wrote a few triggers that on insert into the logtable update the usage table and then purge the log table daily..

just gota be careful with it because if your database starts slowing down for whatever reason, apache will lag as well.

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group