How to make vnstat display network statistics for ppp0 interface?

2

2

I'm using vnstat on Ubuntu GNOME 13.10 32-bit to monitor my Internet usage. Running vnstat gives network statistics only for eth0 and wlan0, but since I access Internet using a USB dongle, its network shows up as ppp0 under ifconfig. How do I get vnstat to show network statistics for ppp0?

nsane

Posted 2014-06-13T13:19:58.023

Reputation: 143

Answers

0

After installing vnstat you need to create a database for your interface ppp0. Run the following command

sudo vnstat -u -i ppp0

Force a database update for interface ppp0 or create the database if it doesn't exist. This is usually the first command used after a fresh install.
See man page

totti

Posted 2014-06-13T13:19:58.023

Reputation: 832

@nisargshah95 Did you run the command as super user? Show the output of ps aux | grep vnstat and vnstat – totti – 2014-06-18T20:37:05.407

1

Here http://pastebin.com/yEswNzJf @totti

– nsane – 2014-06-19T20:24:16.410

I did it. But on calling vnstat it displays ppp0: Not enough data available yet.. I've used enough Internet for the data to be displayed. – nsane – 2014-06-14T16:00:58.950

Force update again vnstat -u -i ppp0 then vnstat -i ppp0, @nisargshah95 – totti – 2014-06-14T16:58:45.990

@nisargshah95 does it work ? – totti – 2014-06-16T09:04:27.133

Nope. It still says ppp0: Not enough data available yet. even though I've used ppp0 for a day now. There should be something to show... – nsane – 2014-06-16T17:21:36.067

Show output of ifconfig @nisargshah95 – totti – 2014-06-17T15:08:34.960

here - http://pastebin.com/uEC5WK1k

– nsane – 2014-06-17T17:44:16.833