vnstat
From thelinuxwiki
# vnstat --testkernel
# vnstat --iflist Available interfaces: lo eth0
# vnstat -u -i eth0 Error: Unable to read database "/var/lib/vnstat/eth0". Info: -> A new database has been created.
scratch
# chown root:monitor /var/lib/vnstat/*