LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=29)
-   -   monitor bandwidth usage per virtualhost (http://www.litespeedtech.com/support/forum/showthread.php?t=6444)

werbyvillarino 12-11-2012 04:37 AM

monitor bandwidth usage per virtualhost
 
Hello Guys,

I'm new to lightspeed and I have this question, we have a lot of websites (virtualhost) in our current lightspeed server and we would like to know is there a way we could monitor its bandwidth usage per virtualhost?

I came across this article http://blog.webhostingdiscussion.net...-in-apache.htm

Is there a similar tool I could turn-on for this?


Thanks.

NiteWave 12-11-2012 05:11 PM

you can create a "bytes log" for each virtual host, then calculate the bandwidth usage for each virtual host. I think this is what cPanel has done in this way.

werbyvillarino 12-11-2012 10:38 PM

Quote:

Originally Posted by NiteWave (Post 38905)
you can create a "bytes log" for each virtual host, then calculate the bandwidth usage for each virtual host. I think this is what cPanel has done in this way.


The thing is we are not using cPanel is there any alternative without the cPanel?

NiteWave 12-12-2012 03:54 AM

have to write your own script to analyze the log files to get the bandwidth usage per virtual host, mimic cPanel's perl script.

werbyvillarino 12-14-2012 12:58 AM

Could you point to a sample script for this cause I'm new to parsing bytes log files.

Thanks,

NiteWave 12-14-2012 03:48 AM

FYI:
http://serverfault.com/questions/146...-host-is-using

it provide an sample with only 1 line awk script.


All times are GMT -7. The time now is 03:17 AM.