I am using vnstat for first time and I am getting this error while using vnstat -d
Error: Unable to read database "/var/lib/vnstat/eth0": No such file or directory
The file in /var/lib/vnstat are
enp1s0 wlp2s0
These are my network interfaces.
I can understand it using eth0 file but how can I changed default file to enp1s0 from eth0.
When I use sudo vnstat -u -i eth0, I get error
Error: Unable to read database "/var/lib/vnstat/eth0": No such file or directory Error: Unable to get interface "eth0" statistics. Only available interfaces can be added for monitoring.
vnstatcan only have a single default interface, it doesn't differentiate by type. You will need to choose whether you want that to be the wired or wireless one. – steeldriver May 02 '18 at 12:52Interfaceconfiguration option only defines the interface that gets shown if no other interface is specified with the-iparameter. If no parameters are given for thevnstatcommand then a summary of all tracked interfaces will be shown by default. – Teemu Toivola May 05 '18 at 22:53