Shared Hosting Bandwidth Monitoring

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
carpediem
Posts: 2
Joined: Wed Feb 16, 2005 3:40 pm
Location: UK

Shared Hosting Bandwidth Monitoring

Post by carpediem »

HI,
I am looking for a solution to monitor the bandwidth usage of sites that I host on a shared server. The vast majority of the sites are on a single ip address, but have seperate apache logs (if that makes any difference).

Can I use Cacti to produce bandwidth monitoring?

If not, does anybody know what can?

THanks
Bill
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Webaliazer or AnalogX will give you total web server bandwidth over time. These are designed to process apache logs.

You could write a parser to take the data from the logs and present it to cacti, might even be a post on how to do that. I remember seeing something.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
carpediem
Posts: 2
Joined: Wed Feb 16, 2005 3:40 pm
Location: UK

Webalizer + Analog X

Post by carpediem »

Hi Tony, I currently use webalizer but this does not seem to include bandwidth for things like email and ftp.
A few clients are abusing this, by registering for the cheapest option and sending massive emails. We do work for quite a few design agencies so they email and ftp massive files for clients to download, and I would like to be able to track this.

Dont suppose you have any more idea about the parser?
I have had a look at analog X - www.analogx.com - but could not see anythign to do the job.

THanks
Bill
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, my bad, here are the links to analog, not analogx... ;)

Parser: http://www.analog.cx/

Report writer: http://www.reportmagic.org/

Gluck
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
nodens
Posts: 11
Joined: Sun Feb 06, 2005 2:49 pm

Post by nodens »

beware, the size in HTTP log does not take into account the headers. If there are a lot of smal file, you could see a difference between actual traffic and traffic graphed (sometimes up to 15% according to my experience).

There is an apache module that export traffic to an snmp agent on a virtualhost basis (or something like that, I can't remember the exact method), but I didn't test it

For mail, I would suggest allowing only authenticated smtp to a SMTP HUB. but you'll need a bit of firewalling also, it is easy to write a php or perl script that can send mails on his own. Then just limit the number of mails a user can send.

FTP traffic is just as easy to gather as HTTP traffic. But parsing all those log can be a ressources consuming task.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests