hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Bandwidth Monitoring Per Domain
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Bandwidth Monitoring Per Domain

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2003, 09:31 AM
orsm orsm is offline
Newbie
 
Join Date: Feb 2002
Location: Perth, Western Australia
Posts: 10

Bandwidth Monitoring Per Domain


Gday guys,

I've spent the last couple of days searching everywhere I could possibly think of for a way that will allow me to monitor bandwidth usage per domain.

From what I've read it can be done relatively easily with MRTG but that'll only allow me to monitor traffic across individual IP's... doesn't really suit as I have numerous domains sharing single IP's. Basically just need a break down of monthly and maybe daily usage for each domain. Monitoring of hits, referers etc is trivial. I'm more interested in the total usage so once again stuff like graphs etc arent necessary.

From memory Ensim has [or at least had] a tool that does this which would probably suit my needs perfectly but I'm not prepared to run Ensim on the machines.

The servers are linux and can get extremely busy so anything that sucks TONNES of resources and takes forever to process figures probably isnt a good idea.

So... does anyone have any suggestions on how I may go about doing this?

Look forward to your replies and thanks.


Orsm.

__________________
where as once I was blind... now I can see...

Reply With Quote


Sponsored Links
  #2  
Old 07-01-2003, 09:36 AM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
is this just for http?

Reply With Quote
  #3  
Old 07-01-2003, 09:41 AM
orsm orsm is offline
Newbie
 
Join Date: Feb 2002
Location: Perth, Western Australia
Posts: 10
Yes...

Sorry yep... particularly just for HTTP only. If theres a way to monitor both individually then even better I guess.



Orsm.

__________________
where as once I was blind... now I can see...

Reply With Quote
Sponsored Links
  #4  
Old 07-01-2003, 09:43 AM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
webalizer

Reply With Quote
  #5  
Old 07-01-2003, 09:47 AM
orsm orsm is offline
Newbie
 
Join Date: Feb 2002
Location: Perth, Western Australia
Posts: 10
Have been led to believe that Webalizer isnt all that acurate...

Comments?


Orsm.

__________________
where as once I was blind... now I can see...

Reply With Quote
  #6  
Old 07-01-2003, 10:10 AM
heyzuess heyzuess is offline
WHT Addict
 
Join Date: Nov 2002
Posts: 151
check this out: http://www.snert.com/Software/mod_watch/

works great for name based virtual servers.

Reply With Quote
  #7  
Old 07-01-2003, 10:37 AM
orsm orsm is offline
Newbie
 
Join Date: Feb 2002
Location: Perth, Western Australia
Posts: 10
mod_watch looks decent... has anyone tried running this with 1.3? The page suggests it is only for Apache 2.0.

__________________
where as once I was blind... now I can see...

Reply With Quote
  #8  
Old 07-01-2003, 10:43 AM
heyzuess heyzuess is offline
WHT Addict
 
Join Date: Nov 2002
Posts: 151

Reply With Quote
  #9  
Old 07-01-2003, 12:13 PM
JasonBD JasonBD is offline
Junior Guru Wannabe
 
Join Date: Dec 2002
Posts: 96
I say you make your own php bandwidth script to calculate the kb sent in the apache access logs or your traffic logs. That is what we did it works...

Reply With Quote
  #10  
Old 07-01-2003, 06:25 PM
euselect euselect is offline
Junior Guru Wannabe
 
Join Date: Feb 2003
Location: Europe
Posts: 55
Hello

I use a combination of webalizer and then a php/shell script to extract the totals from it daily just after webalizer has been run. All this goes into a db after.

Works well for me , if you want a copy let me know.

Neil

Reply With Quote
  #11  
Old 07-02-2003, 02:24 PM
euselect euselect is offline
Junior Guru Wannabe
 
Join Date: Feb 2003
Location: Europe
Posts: 55
For everyone who asked !

http://www.namx.co.uk/webgrab.tar.gz

A few notes about this:

These scripts are designed to be exexcute in the shell.
They are not intended for execution on webservers thru apache , but could be adapted easily.

You will need to edit at least grab.php, and set the correct path or URL in the line starting: $url=

You will see 2 example entries comment.

You will need a mysql database connect in a file called db.php,

Heres the contents of db.php

<?
// db connection details
////////////////////////
//error_reporting(0);

$db_server = "YOURMYSQLSERVERNAME.com";
$db_user = "YOURMYSQLUSER";
$db_pass = "YOURMYSQLPASS";
$database = "YOURMYSQLDB";

// connect to our db
/////////////////////

if (!($mysql_link = mysql_connect("$db_server", "$db_user", "$db_pass")))
{
// change this print to a syslog eventually !
print ("Could not use $database database, exiting");
exit;
}

if (!(mysql_select_db("$database", $mysql_link)))
{
// change this print to a syslog eventually !
print ("No Mysql service available, exiting");
exit;
}
?>


and a table within the db called websites.

Here is an sql statement to do that ,assuming you have a db already

CREATE TABLE websites (
primary_domain varchar(128) NOT NULL default '',
transfer_used float NOT NULL default '0',
UNIQUE KEY primary_domain (primary_domain)
) TYPE=MyISAM;

Good luck - icq 81854162 if you need help

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Site24x7 Offers Website Monitoring Service via New WHMCS Plug-in Web Hosting News 2013-04-19 12:16:46
Web Hosting Sales and Promos Roundup – July 6, 2012 Web Hosting News 2012-07-06 16:58:50
Hosting.com Rounds Out Monitoring Suite with Application Performance Monitoring Web Hosting News 2012-02-08 16:04:10
Colocation Firm CoreXchange Offers Online Ordering via Enhanced Website Web Hosting News 2011-11-03 21:16:17
Web Hosting Sales and Promos Roundup - October 28, 2011 Web Hosting News 2011-10-28 19:52:36


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting 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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?