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

Re: [Xen-users] Control Panel For Xen



exactly 5 minutes before i recognized that my script is buggy... it creates a 
new file after reboot.. 

please remove line 77/78 with data_file=
because of this there will be made everytime a new file.

Thank you


sure, you can get all I have or I can write someting for you...

but I think it may not be much work to add all values of a mysql-database or 
what is your problem ?

in php, this are some lines, I think ?

stephan




Am Mittwoch, 15. Februar 2006 10:04 schrieb Anand Gupta:
> 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.0up 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='?trend=$graph'><img src='$graph-day.png'
> > border='1'></a>"; print "<br>";
> > }
> > }
> > else
> > {
> > open(traffic, "</var/www/htdocs/rrdtool/$name.traffic");
> > my @data = <traffic> ;
> > close(traffic);
> > my $data = \@data;
> >
> > print <<END
> > <h2>Total Traffic = $data[0] MB</h2>
> > Daily Graph (5 minute averages)
> > <br>
> > <img src='$name-day.png'>
> > [...]
> >
> > 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

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

_______________________________________________
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®.