yum install vnstat
if you do something like this:
vnstat -u -i venet0
you can get error:
Error: Unable to read database “/var/lib/vnstat/venet0”.
Info: -> A new database has been created
so:
you should wait a bit and again run:
/usr/bin/vnstat -u -i venet0
vnstat -d