Portal Home > Knowledgebase > XSLOVZ > Bandwidth counter


Bandwidth counter




Hi there,

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.

Example :
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

Good Luck.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
OpenVZ Installation (Views: 1586)
XSLOVZ Overview (Views: 1794)
Security Concerns (Views: 899)

Powered by WHMCompleteSolution