Closed kkettinger closed 10 months ago
Which container image are you using? I'm guessing that if version 2.9 is in use then https://github.com/vergoh/vnstat-docker isn't the one being used?
"disabled" refers to the monitoring of that interface being disabled / not active. For versions 2.x that means that the daemon doesn't currently have visibility of the interface. You can verify the situation with vnstat --iflist
which will list all currently available interfaces. It's likely that wg0 isn't on that list. Depending on how you've setup the container vnStat is running in a docker, it may be possible that the container doesn't have visibility for all the interfaces. For that to happen, you'll need to run the container having the vnStat daemon in it using host networking.
Depending on your needs, note that for Ubuntu 22.04 the latest vnStat release is also available via snap
in addition to docker and the source package.
Thanks for your reply. Sorry, I meant proxmox instead of docker (it was late..), so it is a standard ubuntu 22 lxc container with the distribution default vnstat. Strangely, it seems to have fixed itself, now all interfaces are enabled.
If it happens again (maybe on a new lxc container) I will check the interfaces with --iflist
.
It's possible that if the Wireguard interface doesn't come up before the vnStat daemon gets started then the daemon will temporarily mark that interface as "disabled". However, the daemon does keep polling available interfaces and will detect if the wireguard interface is later activated. That's how you can get a situation where the interface is intially marked as "disabled" after boot and then re-enabled automatically later. Check the daemon log entries as all interface status changes get logged. See the configuration file for configuration options containing Interval
for further details regarding the timings.
I'm running vnstat 2.9 on ubuntu 22.04 inside proxmox. I'm trying to track usage of the wireguard interface
wg0
, but can't add/enable the interface.Adding to database:
Showing last data:
Listing interfaces in database:
No 5 minute data for interface wg0 (index 3):
Reboot doesn't work. Any clue what is happening here? Why is there a "disabled" flag? Up on booting, the
wg0
interface doesn't exist but is created afterwg-quick up wg0
. Restarting vnstat afterwards doesn't change the "disabled" flag.