gtop
gtop copied to clipboard
Feature: specify network interface
Environment
- OS: Debian
- Node version: 10.10.0
- gtop version: 1.0.0
Description
The network info is empty (0.00 B/s), empty line.
Is it possible to set the network interface used? I suspect that this is the issue as there is a network interface card that is not used yet, but that is not the card that I want to monitor with gtop.
I have the same problem. Connected both to wlan0 and eth0
root privilege is required to show network info. I think this app should display a warning or sth to indicate this requirement.
@yangg you do not need root access to view the network stats. After updating to a newer version of gtop I was able to view the network activity. The problem here isn't access level, its the number of network interfaces on the machine.
@durandj I just install the latest 1.0.0, it can not show network stats without root permission on my Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:16:3e:02:xx:xx brd ff:ff:ff:ff:ff:ff
inet 172.18.19.89/20 brd 172.18.31.255 scope global dynamic eth0
valid_lft 306399484sec preferred_lft 306399484sec
gtop
shows the default network interface using this library. There can be an option to specify this in the future.