Thank you for the link, and the commands, already got a reply!
Hi,
was vnStat compiled + installed from the source package or using some
Debian provided (apt-get etc.) binary package?
Your --dumpdb output on the forum looks a little bit corrupted but I'm not
sure if it's due to some copy/paste error or an actual problem in the
database. The fact that the database claims to be created in 1970 at least
suggest something is wrong.
The outputs of the following commands could provide some clues:
1) vnstat --iflist
2) ps aux | grep vnstat
3) ls -la /var/lib/vnstat
-Teemu
To which:
Code:
:~$ vnstat --iflist
Available interfaces: eth0 (100 Mbit) lo
Code:
sade@Sinai:~$ ps aux | grep vnstat
vnstat 643 0.0 0.0 7360 1924 ? Ss 09:07 0:01 /usr/sbin/vnstatd -n
sade 7491 0.0 0.0 12728 2280 pts/0 S+ 12:51 0:00 grep vnstat
Code:
:~$ ls -la /var/lib/vnstat
total 16
drwxr-xr-x 2 vnstat vnstat 4096 Jan 11 18:52 .
drwxr-xr-x 54 root root 4096 Jan 11 18:50 ..
-rw-r--r-- 1 vnstat vnstat 2792 Jan 11 18:52 eth0
-rw-r--r-- 1 root root 2792 Jan 11 18:52 .eth0
Since i last wrote, purged vnstat, force removed the /var/lib/vnstat directory and reinstalled vnstat. That got rid of the "no database available" message but now everything is stuck at 4KiB and i've already downloaded more than 500MB since then.
Code:
:~$ LC_ALL=C vnstat
Database updated: Mon Jan 11 18:52:32 2016
eth0 since 01/11/16
rx: 2 KiB tx: 2 KiB total: 4 KiB
monthly
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
Jan '16 2 KiB | 2 KiB | 4 KiB | 0.00 kbit/s
------------------------+-------------+-------------+---------------
estimated -- | -- | -- |
daily
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
01/11/16 2 KiB | 2 KiB | 4 KiB | 0.00 kbit/s
------------------------+-------------+-------------+---------------
estimated -- | -- | -- |