Web Hosting Talk







View Full Version : monitoring BW


thibot
03-31-2002, 04:33 PM
Hi I need help in monitoring my virtual machine. I need to be able to monitor it directly from the machine. I was wondering if you new any sofware who can do this ?

Thanks

webx
03-31-2002, 04:52 PM
MRTG: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/

thibot
03-31-2002, 05:03 PM
I already use MRTG to monitor the machine itself.. but i need a sofware to mojitor my virtual accounts on the server itself. Iwould like it if they use Mysql database to store it's information.

webx
03-31-2002, 05:11 PM
Ah!

So you want to monitor WWW and/or FTP and/or Mail traffic of virtual hosting accounts?

If that's the case, you can use some log analysis tools?

thibot
03-31-2002, 05:15 PM
Yes, we can do that. I need to monitor WWW/FTP logs. The problem with raw log is that if a Virtual client pushes 100 GB a month it might not be very accurate. Also it would be nice if it gives our clients a visual of their BW usage.

I could get it programmed in PHP but i am starting to realise there are a lot of free/cheep programs who can do this for me. I was just wondering if anyone found this "sofware" :)

thanks,

webx
03-31-2002, 05:26 PM
For WWW logs you can use webalizer or analog. Both have their own features. I have used them both extensively. :)

http://www.webalizer.org
http://www.analog.cx

For FTP, I'm not sure. I havn't seen any package for that. You can leave the FTP for the time being ;)

Or may be write a php script that imports the logs into MySQL and can create custom reports. :blush:

thibot
03-31-2002, 05:31 PM
I was currently using webalizer, but i was affraid of the accuracy of the log. If you tell me they are very accurate. Then we can simple dumb the BW into my bandwitdh table.

Thanks for the help.
Greatly appreciated.

thibot
03-31-2002, 05:34 PM
What if i want to block their bandwitdh or prorate it ?

Any idea on this ?

webx
03-31-2002, 06:10 PM
What can I say about the accuracy? :confused: It is supposed to be based on raw logs. And raw logs contain the bytes transferred from the webserver, so it must be ok.

Blocking bandwidth is not a good idea. You can block by closing their website :D What do you mean prorate? How?

serve-you
03-31-2002, 08:49 PM
mod_throttle (http://www.snert.com/Software/mod_throttle/)

-Dan

webx
03-31-2002, 09:52 PM
Thanks Dan,

That's a really cool mod to counter DOS attack on web pages :) Let me check this out and install it.

taz0
04-01-2002, 11:49 AM
The www logs will not show the TCP overheads...
and will be therefore less than the real bandwidth used.

thibot
04-01-2002, 12:26 PM
I tried mod trottle in the past. I do not recommend it... if one of your client has a flash web site. It wills low it and kill it right away.

Sadly, this is not a good alternative :(

Starhost
04-01-2002, 03:53 PM
I used mod_watch for a while and I must say I liked it untill it stopped running. Why it that I still don't know. Therefore I'm now using webalizer.

Which keeps track of the total http traffic for a vhost.

serve-you
04-01-2002, 04:31 PM
Originally posted by thibot
I tried mod trottle in the past. I do not recommend it... if one of your client has a flash web site. It wills low it and kill it right away.

Sounds to me like an improper configuration. You set the limits for your clients in mod_throttle. Obviously if the limits are set too low, this is what would happen. In which case, it's doing it's job. Mod_throttle is very configurable. You can set it differently per client, if need be, or just use a generic setting globally.

-Dan