Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: specify network interface #84

Open
deefdragon opened this issue Oct 22, 2018 · 6 comments
Open

Feature: specify network interface #84

deefdragon opened this issue Oct 22, 2018 · 6 comments
Labels

Comments

@deefdragon
Copy link

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.

@carlos-riquelme
Copy link

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

@yangg
Copy link

yangg commented Mar 21, 2019

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

@durandj
Copy link

durandj commented Mar 21, 2019

@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.

@yangg
Copy link

yangg commented Mar 21, 2019

@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

@durandj
Copy link

durandj commented Mar 21, 2019

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

asciicast

@aksakalli
Copy link
Owner

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

@aksakalli aksakalli changed the title network info empty Feature: specify network interface May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants