|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Control Panel For Xen
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] could not load /lib/modules, Tobias
- Re: [Xen-users] could not load /lib/modules, Henning Sprang
- Re: [Xen-users] could not load /lib/modules, Tobias
- [Xen-users] Control Panel For Xen, Linn Boyd
- Re: [Xen-users] Control Panel For Xen, Frieder Kundel
- Re: [Xen-users] Control Panel For Xen, Jonathan D. Proulx
- Re: [Xen-users] Control Panel For Xen, Stephan Augustin
- Message not available
- Re: [Xen-users] Control Panel For Xen, Stephan Augustin
- Re: [Xen-users] Control Panel For Xen,
Anand Gupta <=
- Re: [Xen-users] Control Panel For Xen, Stephan Augustin
- [Xen-users] XEN3 Problem on Fedora Core 4, Stefan Brunzen
- Re: [Xen-users] XEN3 Problem on Fedora Core 4, Ernst Bachmann
- Re: [Xen-users] [OT] XEN3 Problem on Fedora Core 4, Ralf Schmitt
- Re: [Xen-users] Control Panel For Xen, Eric Peterson
|
|
|
|
|