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
Shared Hosting Bandwidth Monitoring
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
Webalizer + Analog X
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Ok, my bad, here are the links to analog, not analogx...
Parser: http://www.analog.cx/
Report writer: http://www.reportmagic.org/
Gluck
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]
[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]
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest