You are not logged in.

#1 2018-10-25 19:19:55

sudoku
Member
Registered: 2012-10-31
Posts: 95

VnStat stopped accepting combined interfaces

The man entry for VnStat says:

-i, --iface interface
              Select  one  specific  interface and apply actions to only it. For queries, it is possible to merge the information of two or more interfaces using the interface1+interface2+...  syntax.

So:

# vnstat -i enp8s0 --oneline
1;enp8s0;25/10/18;0 B;0 B;0 B;0.00 bit/s;Oct '18;0 B;0 B;0 B;0.00 bit/s;907.76 GiB;633.65 GiB;1.51 TiB
# vnstat -i wlp9s0 --oneline
1;wlp9s0;25/10/18;2.02 GiB;109.21 MiB;2.13 GiB;236.55 kbit/s;Oct '18;16.24 GiB;2.50 GiB;18.75 GiB;74.99 kbit/s;26.93 GiB;3.20 GiB;30.12 GiB

Yet:

# vnstat -i wlp9s0+enp8s0 --oneline
Nothing to do. Use --help for help.
# vnstat --oneline
Segmentation fault

I remember it used to work in previous versions. Is it just me or is VnStat broken?

Last edited by sudoku (2018-10-27 10:00:06)

Offline

#2 2018-10-27 10:03:23

sudoku
Member
Registered: 2012-10-31
Posts: 95

Re: VnStat stopped accepting combined interfaces

Turns out that the feature allowing to combine data from different interfaces has been removed from vnstat 2.0-1.

The segfault was caused by a misconfiguration in the stock config file (vnstat assumed the default interface was non-existent wlo1).

Perhaps the wiki should be updated to reflect the update.

Offline

Board footer

Powered by FluxBB