Anime stats not updating
[email protected]:/var/lib/vnstat$ ls -la total 16 drwxr-xrwx 2 vnstat vnstat 4096 May 16 . -rw-r--rwx 1 vnstat vnstat 2792 Jul 26 eth0 -rw-rw-r-- 1 vnstat vnstat 2792 Jul 26 .eth0 [email protected]:/var/lib/vnstat$ $ vnstat --help vn Stat 1.11 by Teemu Toivola -q, --query query database -h, --hours show hours -d, --days show days -m, --months show months -w, --weeks show weeks -t, --top10 show top10 -s, --short use short output -u, --update update database -i, --iface select interface (default: eth0) -?, --help short help -v, --version show version -tr, --traffic calculate traffic -ru, --rateunit swap configured rate unit -l, --live show transfer rate in real time See also "--longhelp" for complete options list and "man vnstat".Stats don't update when data is modified, they update after data is modified and a query needs to use them (assuming they've met the modification threshold). SELECT * without a WHERE clause) won't trigger a stats update.Try running a query that actually makes the engine do something where the stats might be useful (e.g. The new calculation is only used if trace flag 2371 is enabled, except on SQL Server 2016 when the context database compatibility level is set to 130, where it is the default behaviour.
kernel: [ 5014.611263] usb 2-1.2.3: New USB device found, id Vendor=04e8, id Product=326c Jun 15 ...Or status might read "Wainting for printer to become available", while it is available. It seems to be somehow related to apparomor, as at times when printer is being used I get these lines in /var/log/syslog: Jun 15 ...kernel: [ 827.574712] type=1400 audit(1402824295.6): apparmor="DENIED" operation="signal" profile="/usr/sbin/cupsd" pid=1055 comm="cupsd" requested_mask="send" denied_mask="send" signal=term peer="unconfined" Jun 15 ...I forgat to add that I let run "vnstat -u -i wlan0" (and same for the other devices) as ROOT. And one more thing: You have to check whether you are using systemd, init or upstart and start the daemon according to this.
Sorry I had to make this its own answer instead of editing Boby's since my edit was rejected :| By default, when you install vnstat, it auto starts a vnstatd daemon, which collects metrics every 30 seconds and "updates them" (for all local devices) every 5 minutes.Thanks for providing this for us for free, and keep up the hard work!