[Solved] vnstat -d,-w,-m all return "no data available" but vnstat works.
It has been some time since i checked my bandwidth usage so i don't know if this is because i disabled NetworkManager.service a few weeks ago.
Today when all the above vnstat options returned "no data available" (i've dealt with Not enough data available before), while vnstat without options did throw up some data, i did this: Code:
:~# systemctl enable vnstat Code:
:~$ sudo vnstat -u -i eth0 Code:
:~$ vnstat Code:
:~$ LC_ALL=C vnstat |
No idea but I'd first check what 'vnstat --dumpdb' returns? Should be 89 lines. Then what does 'vnstat --debug -d' return?
|
I should have remembered to mention i am using OpenDNS servers, sorry; also noticed i don't have the </var/log/vnstat> or </run/vnstat> directories. Added the opendns nameservers in /run/resolvconf/interfaces/eth0 and rebooted, nothing, the files in the DatabaseDir "/var/lib/vnstat/eth0" are unreadable (there's two of them)..seriously, i'm out of my depth here..:cry:
Code:
:~$ vnstat --dumpdb |
Quote:
Quote:
Quote:
|
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 Code:
sade@Sinai:~$ ps aux | grep vnstat Code:
:~$ ls -la /var/lib/vnstat Code:
:~$ LC_ALL=C vnstat |
Purged vnstat once again and installed from source as per http://humdi.net/wiki/vnstat/install/in_debian. Why this works while installing with apt-get did not is beyond me but there it is. It even took care of the locale issue that i used to have before when i had to "LC_ALL=C" for vnstat -d.
Code:
:~$ vnstat -d |
All times are GMT -5. The time now is 05:40 PM. |