vnstat does not list other interfaces if eth0 is never used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vnstat (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vnstat
Typically I have 2 or three network interfaces (potentially) running:
eth0 -- ethernet cable
eth1 -- wlan
ppp0 -- UMTS modem
Since eth0 is nearly never used (at least not since I startet using vnstat), there is nothing to report on eth0. When I just type vnstat, I get a a summary of today and of the last day the interface was used for eth1 and ppp0. If, however, I request data for the month with -m, vnstat complains that there is no data yet for eth0 and displays no data. I have to explicitly request -i ppp0 or -i eth1 to get monthly output for those interfaces.
Expected behaviour: Also more the monthly output I would expect that vnstat lists just the data it has and does not stop listing data just because eth0 does not yet have data.
This is Ubuntu 9.04.
% apt-cache policy vnstat
vnstat:
Installiert: 1.6-1
Kandidat: 1.6-1
Versions-Tabelle:
*** 1.6-1 0
500 http://
100 /var/lib/
Changed in vnstat (Ubuntu): | |
status: | Confirmed → Fix Committed |
tags: | added: natty |
You can change the default interface that gets used when parameter -i isn't present from the configuration file /etc/vnstat.conf by changing the "Interface" setting. However, it seems that 1.6-1 doesn't install any configuration file although such existed in the original upstream install script. That configuration file can be later created with "sudo vnstat --showconfig >/etc/vnstat.conf".
The current upstream version (1.8) adds also the current and previous months to the summary output compared to version 1.6.