[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Control Panel For Xen


  • To: stephan.augustin@xxxxxx
  • From: Anand Gupta <xen.mails@xxxxxxxxx>
  • Date: Wed, 15 Feb 2006 14:34:48 +0530
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 15 Feb 2006 09:17:15 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=c7upu5ZMq7FBY0HV7nYH2MDPZDpCstcPJihOSNwCBL750S0LAzs4hbtydQud/v2xQtnBpaosMbpJczZXosNT4VbtuCBUwrz1GpUonv8UMq7Ra73dwNfcrmQPq3gtPLhjNGW824xv8OsnV6iuEKqIPvZzNkGZfj6kCl4fH7jqQNo=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Thanks a lot.

On reading the script i realised its exactly the same way i have been trying to get my traffic results :)

ifconfig -a vm01 | grep 'RX bytes' | cut -d : -f 2 | cut -d ' ' -f 1

Above vm01 being my interface. I was trying to store all these values in a mysql db and then trying to calculate the entire transfer done by a domU. However i was facing problems when it was coming to calculate the entire totals.

Seeing your script has solved some of my doubts which i had. I will try to merge both your and mine together and see how it comes up. Btw my vm's have personal names and hence the same interfaces. I am also trying to write an interface through which customers can login and check their usage.

Thanks for giving the script and helping me.

If you don't mind can i ask any other scripts you have written for working with Xen ? I have been working on a control panel myself for my customers to get them to use xen based vds. The panel will allow them to load any os image etc. The panel will be cluster ready (meaning can handle multiple dom0's). Right now i was working on traffic QoS on the domU's to ensure all domains get fair share of the traffic.

On 2/15/06, Stephan Augustin <stephan.augustin@xxxxxx> wrote:
sure, here is my attachment :

It is written for Xen, so I ask for xenbr0 and the vif-interfaces from 1.0 up
to x.0

Howto:

copy the script file anywhere in your system
add the line
*/5 * * * * root   /anywhere/in/your/system/traffic_counter.sh > /dev/null
or for logging
*/5 * * * * root   /anywhere/in/your/system/traffic_counter.sh
> /var/log/traffic.log
configure the script

I am using it together with the rrd-tool after this howto
( http://martybugs.net/linux/rrdtool/traffic.cgi)
and added in my
/var/www/htdocs/rrdtool/traffic.cgi
[...]
print "<a href=''><img src='' border='1'></a>";
print "<br>";
}
}
else
{
open(traffic, "</var/www/htdocs/rrdtool/$name.traffic");
my @data = "" ;
close(traffic);
my $data = "">
print <<END
<h2>Total Traffic = $data[0] MB</h2>
Daily Graph (5 minute averages)
<br>
<img src=''>
[...]

Hope it will help, if I can give further support, please tell me ;-)

Greetings

Stephan



Am Mittwoch, 15. Februar 2006 08:14 schrieben Sie:
> On 2/14/06, Stephan Augustin <stephan.augustin@xxxxxx> wrote:
> > Total traffic is an very difficult issue, i think, for my server i didn't
> > find
> > something so i created my own script
>
> I have been looking for something for the traffic part myself. If you don't
> mind can you please share your script ?
>
> --
> regards,
>
> Anand Gupta

--
Stephan Augustin
Rosenpark 3
65795 Hattersheim
06190/879166
0173/1735867





--
regards,

Anand Gupta
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.