WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

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

Attachment: traffic_counter.sh
Description: application/shellscript

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