gtop icon indicating copy to clipboard operation
gtop copied to clipboard

Feature: specify network interface

Open deefdragon opened this issue 6 years ago • 6 comments

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.

deefdragon avatar Oct 22 '18 06:10 deefdragon

I have the same problem. Connected both to wlan0 and eth0 network

carlos-riquelme avatar Feb 16 '19 16:02 carlos-riquelme

root privilege is required to show network info. I think this app should display a warning or sth to indicate this requirement.

yangg avatar Mar 21 '19 01:03 yangg

@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 avatar Mar 21 '19 01:03 durandj

@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

yangg avatar Mar 21 '19 01:03 yangg

I just ran the latest on my machine without root and had no issues seeing network activity.

asciicast

durandj avatar Mar 21 '19 01:03 durandj

gtop shows the default network interface using this library. There can be an option to specify this in the future.

aksakalli avatar May 14 '19 17:05 aksakalli