I/O and Network Usage

Asked by Ben Burkert

Great indicator, I feel as though it would be complete if there was an option to also display disk I/O and also network usage. Other than that though the indicator does a great job, i've had no problems with it. Please consider adding these features in future releases, thanks!! :)

Question information

Language:
English Edit question
Status:
Answered
For:
Indicator Sysmonitor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gabriel Lopez (injaon) said :
#1

Thanks for the ideas. Actually, you can add the network usage adding {net} sensors. You can add it in the preferences menu-item. We are working in a help message with the explenation of others feature than memory and CPU usage.

Revision history for this message
Hamidreza Jafari (hamidrjafari) said :
#2

It requires 'ifstat' on the system. But when I installed it from the repository it is always fixed showing "↓0kB/s ↑0kB/s". Is there any other settings required? I am using Ubuntu 12.10.

Revision history for this message
Gabriel Lopez (injaon) said :
#3

I think it doesn't need other dependeces, but I'm not completly sure. Anyway...
Is ifstat working correctly in your system? Run ifstat in a console and see if the output is different from "↓0kB/s ↑0kB/s".

Try running it en a console and see if the output is usefull.

What version are you runing? You can try the latest version, it has some improvements. You install like this:
$ rm ~/.indicator-sysmonitor.json
$ bzr branch lp:indicator-sysmonitor

and then execute it
$ ./indicator-sysmonitor/indicator-sysmonitor

Revision history for this message
Hamidreza Jafari (hamidrjafari) said :
#4

ifstat is working properly. Numbers are non-zero and appearing normal (for
example when listening to streaming radio). The version I am currently
using is 0.5.1~unreleased. I did the procedure you described, still the
same result, network data does not change than zero.

Cheers,
Hamid

On Tue, Feb 5, 2013 at 9:06 AM, Gabriel Lopez <
<email address hidden>> wrote:

> Question #154454 on Indicator Sysmonitor changed:
> https://answers.launchpad.net/indicator-sysmonitor/+question/154454
>
> Gabriel Lopez posted a new comment:
> I think it doesn't need other dependeces, but I'm not completly sure.
> Anyway...
> Is ifstat working correctly in your system? Run ifstat in a console and
> see if the output is different from "↓0kB/s ↑0kB/s".
>
> Try running it en a console and see if the output is usefull.
>
> What version are you runing? You can try the latest version, it has some
> improvements. You install like this:
> $ rm ~/.indicator-sysmonitor.json
> $ bzr branch lp:indicator-sysmonitor
>
> and then execute it
> $ ./indicator-sysmonitor/indicator-sysmonitor
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Gabriel Lopez (injaon) said :
#5

This is really strage. I looked at the code and the operation is really simple. It just put in the systray the output of the next command

$ ifstat -a -n -q -S -T 0.5 1 | tail -1 | awk '{ printf("↓%dkB/s ↑%dkB/s ", $6, $7)}'

If it shows "↓0kB/s ↑0kB/s" there is some wrong in the command.

I always use the app with ubunut 12.04. Anyway I'm going to test it in 12.10. Give me some time to install it.

Please run in a console and paste the output here.
Also, paste here the customize output. (Preferences => Advance)

Revision history for this message
Hamidreza Jafari (hamidrjafari) said :
#6

Well it is like what you guessed:
"↓0kB/s ↑0kB/s" $
Outputs once and then the prompt.

Thanks

Revision history for this message
Gabriel Lopez (injaon) said :
#7

So, that is the problem. Give me the output of the next commands

$ ifstat -v
$ ifstat -a -n -q -S -T 0.5 1
$ ifstat -a -n -q -S -T 0.5 1 | tail -1

Anyway, this is a bug, when I have some time i'll try to replace the requirement of ifstat

Revision history for this message
Hamidreza Jafari (hamidrjafari) said :
#8

Here:

$ifstat -v
ifstat version 1.1.
Copyright (C) 2001-2003, Ga�l Roualland <email address hidden>
Compiled-in drivers: proc, snmp.

$ifstat -a -n -q -S -T 0.5 1
        lo eth0 wlan0 Total
 KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out
    0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

$ifstat -a -n -q -S -T 0.5 1 | tail -1
    0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Revision history for this message
Gabriel Lopez (injaon) said :
#9

OK, I realized there is a big problem. The output will be different depending on the number of net interfaces. I think a real solution is replace the code without using ifstat. I working on that and let you kwow when I finish.
Thanks for discover the bug.

Revision history for this message
Gabriel Lopez (injaon) said :
#10

Hamidreza, I uploaded a fix.
Reinstall everything

$ rm ~/.indicator-sysmonitor.json
$ bzr branch lp:indicator-sysmonitor
$ ./indicator-sysmonitor/indicator-sysmonitor

Revision history for this message
Hamidreza Jafari (hamidrjafari) said :
#11

Thanks Gabriel! It works, but there is one problem: as the figures change it takes more or less space on the panel, and thus shifts everything right or left accordingly. I searched a bit but seems there is no easy way to reorder items in the panel so that one places sysmonitor in the end. Is there a way to pad network numbers with space characters so that a number takes always three places?

Revision history for this message
Gabriel Lopez (injaon) said :
#12

you're welcome Hamidreza! The API which puts text in the systray is very limitated, but it is possible to fix the problem you mention. I'm going to try it in march or april because I'm busy right now.

Can you help with this problem?

Provide an answer of your own, or ask Ben Burkert for more information if necessary.

To post a message you must log in.