OpenVZ Forum


Home » General » HowTo » Bandwidth Accounting + Graphing and More for OpenVZ
Bandwidth Accounting + Graphing and More for OpenVZ [message #1341] Tue, 07 February 2006 02:56 Go to previous message
phpfreak is currently offline  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):

http://www.serverpowered.com/images/bw1_thumb.jpg

http://www.serverpowered.com/images/bw2_thumb.jpg

http://www.serverpowered.com/images/bw3_thumb.jpg

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 Smile

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 Smile I'll subscribe to this and help you out if you need it.


Enjoy!




[Updated on: Tue, 07 February 2006 03:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to write a description in a custom OpenVZ template?
Goto Forum:
  


Current Time: Sun Aug 20 09:46:00 GMT 2017