apt-get install rrdtool
wget http://www.vazart.net/openvz/Debian-Lenny-x64_bandwidth.tar.gz mv Debian-Lenny-x64_bandwidth.tar.gz /vz/template/cache/ vzctl create 101 --ostemplate debian-5.0-x86_64 --config ve-vps.basic --hostname graphs.yourdomain.com --ipadd xxx.xxx.xxx.xxx --name graphs vzctl set 101 --onboot yes --nameserver xxx.xxx.xxx.xxx --userpasswd root:xxxxxxx --save vzctl start 101
vzctl exec 101 rm /home/bandwidth/*
wget http://www.vazart.net/openvz/bandwidth.sh
crontab -e
*/5 * * * * root /root/bandwidth.sh 1>/var/log/vz-bandwidth.log 2>&1