What I'm experiencing is this: after boot vnstat refuses to update. One symptom is that the watched interface is always "disabled". Once enabled it still doesn't update because at boot vnstat's database gets set to UTC but once booted tries to update at local time (-0700 for my location). It refuses to update because the previous update took place 7 hours into the future (hence the "time warp" in my post title).
This adversely effects the net_monitor GUI as well, which under "Traffic Accounting" reports along the lines of "Connection Time: -7 hours, 59 minutes, 42 seconds". The bizarre thing about net_monitor is how "Connection Time" still appears to count away from zero instead of (if it were really negative) toward zero. What I mean to say is that if I wait for 18 seconds after the line above the output jogs to "Connection Time: -6 hours, 0 minutes, 0 seconds" instead of "Connection Time: -7 hours, 59 minutes, 24 seconds" as I would expect.
The only way I can work around this issue is to enable the interface manually via vnstat as root at the CLI and then restart the service altogether. This needs to be done after every boot.
So I've been wondering if this might be caused by the order in which ntpd and vnstatd are started (if that's it, I have no clue how to change it), or if this might have to do with the shorewall6 kerfuffle that's breaking drakfirewall — i.e. vnstat b0rked when I changed some settings. If you don't know what I'm referring to see Errata §4.4, this forum post, Bug 9941 (starting at Comment 2), plus a whole host of other bug reports 9329, 9723; 10155.
Anyway, I thought I'd bring this up on the forums before posting formal bug reports. Any help appreciated.
Show-and-tell of my CLI output follows, starting with my allaying the two most basic concerns.
Yes, both packages are installed:
- Code: Select all
$ rpm -qa '*vnstat*' '*net_monitor*'
vnstat-1.11-2.mga3
net_monitor-0.11-5.mga3
Yes, vnstatd is set to start at boot and is running (note the process's start time @ 12:05:
- Code: Select all
$ ps -ef | grep vnstatd
root 729 1 0 12:05 ? 00:00:00 /usr/sbin/vnstatd -d
If I ask vnstat what it's up to (note the update time is 7 hours into the future and that the interface is "disabled"):
- Code: Select all
$ vnstat
Database updated: Sun Jun 9 19:05:25 2013
eth0 [disabled] since 06/04/13
rx: 6.57 GiB tx: 2.80 GiB total: 9.36 GiB
monthly
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
Jun '13 6.57 GiB | 2.80 GiB | 9.36 GiB | 103.35 kbit/s
------------------------+-------------+-------------+---------------
estimated 22.39 GiB | 9.54 GiB | 31.93 GiB |
daily
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
06/07/13 2.67 GiB | 822.80 MiB | 3.47 GiB | 336.84 kbit/s
06/08/13 226.63 MiB | 262.18 MiB | 488.81 MiB | 58.27 kbit/s
------------------------+-------------+-------------+---------------
estimated 284 MiB | 329 MiB | 613 MiB |
I su to root, enable the interface, and try to update it:
- Code: Select all
# vnstat --enable -i eth0
# vnstat -u -i ehth0
Error: The previous update was after the current date.
Use --force to override this message.