Bandwidth Accounting + Graphing and More for OpenVZ [message #1341] |
Tue, 07 February 2006 02:56  |
phpfreak
Messages: 47 Registered: January 2006
|
Member |
From: *tampfl.dsl-w.verizon.net
|
|
Well, I found the iptables method of collecting bandwidth a bit too hands on and unforgiving. Therefore, using my mad php skills, and some bash scripting, I've whipped up an set of applications that allows you a more graphical and accurate overview using rrdtool, and some PHP scripts. You can have full bandwidth accounting for your VPS including daily, monthly and weekly tabulated data in about 5 minutes of setup time.
Here's some screen shots (full size screens are on our site):



The total process takes about 5 minutes to setup using the pre-created CentOS 4.2 templates that I have packaged up for you, and installing a bash script that does the collection.
The cool thing is, when you add a new VPS, the cronjob will automatically detect this and add the graphs for you. In addition, when you delete a VPS, the graphs and .rrd files will be deleted with it.
The only thing you need to install on the hostnode is the bash script and the rrdtool rpm ( or compile rrdtool from source ). The rest of the display, and web server that displays these graphs is located inside the VE that you'll create specifically for this purpose.
I just wanted to give something back to the community. Thanks for all that you are doing to help this awesome solution grow and become even more evolved 
The full details are found at ServerPowered.com, our server website: http://www.serverpowered.com/openvz-bandwidth-accounting.php
Please direct any discussions here, and not on our server company's website I'll subscribe to this and help you out if you need it.
Enjoy!
Eric Rosebrock
http://www.serverpowered.com
http://www.hybodus.com
http://www.linuxforum.com
http://www.phpfreaks.com
[Updated on: Tue, 07 February 2006 03:14] Report message to a moderator
|
|
|