0

Ubuntu 16.04LTS. I just installed vnstat. Seems it's not updating statistics. What should be the correct permissions for all interfaces?

jettay@ubuntu3:/var/lib/vnstat$ ll /var/lib | grep vnstat
drwxr-xr-x  2 vnstat        vnstat         4096 Nov  9 21:44 vnstat/
jettay@ubuntu3:/var/lib/vnstat$ ls -la
total 24
drwxr-xr-x  2 vnstat vnstat 4096 Nov  9 21:44 .
drwxr-xr-x 78 root   root   4096 Nov  9 21:39 ..
-rw-r--r--  1 vnstat vnstat 2792 Nov 15 01:05 eth0
-rw-r--r--  1 vnstat vnstat 2792 Nov 15 01:05 .eth0
-rw-r--r--  1 vnstat vnstat 2792 Nov 15 01:05 wlan0
-rw-r--r--  1 vnstat vnstat 2792 Nov 15 01:05 .wlan0
Zanna
  • 72,312
minto
  • 831

1 Answers1

1

Have you tried running vnstat -l -i wlan0? That should give you a live feed of it running. Can you see the statistics updating there?

Or are you looking for logs?

vnstat -i eth0 --exportdb

For me I had to set the default interface in /etc/vnstat.conf, however the previous command bypasses it if you name the proper interface.

As suggested in a similar case, did you try to set the ownership appropriately?

sudo chown -R vnstat:vnstat /var/lib/vnstat 

Maybe we can test it by temporarily elevating them all to 755 through something like:

sudo chmod -R 755 /var/lib/vnstat

Let us know if any of this helped and maybe we can narrow it down.

Zanna
  • 72,312