|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Control Panel For Xen
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='?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
traffic_counter.sh
Description: application/shellscript
_______________________________________________
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
|
|
|
|
|