vnstat does not list other interfaces if eth0 is never used

Bug #410968 reported by HaraldK on 2009-08-09
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vnstat (Ubuntu)

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
  Installiert: 1.6-1
  Kandidat: 1.6-1
 *** 1.6-1 0
        500 jaunty/universe Packages
        100 /var/lib/dpkg/status

Teemu Toivola (vergo) wrote :

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.

This bug has got fixed in vnstat (1.11-1) in Ubuntu 11.10 Oneiric Ocelot

pls see also

Even though I still can confirm this behaviour Natty 11.04 (up2date) wt a freshly installed vnstat . On behalf of extensive study of the short manual/man-page:

 I edited the file /etc/vnstat.conf

and changed:

# default interface
Interface "eth0"
# default interface
Interface "eth1"

since I use eth1 instead of eth0. Then eyerythings works.

Think I'll open a new bug wt a backportrequest (down to lucid), probably this one could get closed then, if it get's backported.


Changed in vnstat (Ubuntu):
status: New → Confirmed
Changed in vnstat (Ubuntu):
status: Confirmed → Fix Committed
tags: added: natty
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers