vnstat does not list other interfaces if eth0 is never used

Bug #410968 reported by HaraldK
14
This bug affects 2 people
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://de.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

Tags: natty
Revision history for this message
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.

Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

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

pls see also http://freshmeat.net/projects/vnstat/

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"
into
# 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.

cheers

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.