to calculate bandwidth of your running containers. I created perl script where you can set a cron job to run every 1/5/10 minutes.
to use it download logger.pl from github repo on your OpenVZ Node and chmod the script 755 and add cronjob using crontab -e as root of course.
wget https://raw.githubusercontent.com/mohammedhs/XSLOVZ/master/CTs%20Bandwidth%20Counter/logger.pl -O /root/logger.pl
chmod 755 /root/logger.pl
crontab -e and add :
* * * * * /root/logger.pl
Powered by WHMCompleteSolution