Net speed by interface

Asked by H.J.

I have multiple network interfaces, but I´d like to measure the speed of interface eth0 only.
How can I accomplish that?

Question information

Language:
English Edit question
Status:
Solved
For:
System Load Indicator Edit question
Assignee:
No assignee Edit question
Solved by:
H.J.
Solved:
Last query:
Last reply:
Revision history for this message
Michael Hofmann (mh21) said :
#1

Hi HJ,

thanks for the question!

You can try the version at ppa:indicator-multiload/daily which has support for multiple net interfaces. It exports variables like net.eth0.down and net.eth0.up, which you can use in the menu or by messing with the existing plots (Preferences->Menu items or Preferences->Advanced). The help button gives an overview about the variables you can use.

Hope that helps!
  Michael

Revision history for this message
H.J. (wazzupp) said :
#2

Thanks for your answer.

I´ve installed the daily version and changed tha variables to
Net: down $(speed(net.eth0.down)), up $(speed(net.eth0.up))
But then the network status will become invisible.
http://img834.imageshack.us/img834/8555/menu001.png

Revision history for this message
Michael Hofmann (mh21) said :
#3

Hi HJ,

the easiest way to debug this is to start the indicator from the command line. Quit the indicator, and in gnome terminal, start it manually with "indicator-multiload & disown".

That the net status disappeared could be caused by the indicator not recognizing the variables, could you check in the help dialog (preferences->menu items->help) whether the variables exist?

Best regards
  Michael

Revision history for this message
H.J. (wazzupp) said :
#4

Found the problem.

I grabbed the stable-daily build instead of daily build.
It seems to be working now.