I'm looking fr a bandwidth monitor.

In Windows I use Netlimiter. It shows me what programs are uploadig and/or downloading (if any) and will allow me to cap the bandwidth of any of them.

Is there a Linux app like this?

Thanks
Astralogic

Astralogic wrote:
>
> In Windows I use ‘Netlimiter’ (http://www.netlimiter.com). It shows me
> what programs are uploadig and/or downloading (if any) and will allow me
> to cap the bandwidth of any of them.
>
> Is there a Linux app like this?
>
> Thanks
> Astralogic
>
>
You can monitor bandwidth usage using nethogs

http://software.opensuse.org/package/nethogs


GNOME 3.10.2
openSUSE 13.1 (Bottle) (x86_64) 64-bit
Kernel Linux 3.11.6-4-desktop

Thanks, but I’m having a bit of trouble. I can see that nethogs should be run in a terminal but, well, take a look:

calvin@linux-kmee:~> nethogs
Absolute path to 'nethogs' is '/usr/sbin/nethogs', so running it may require superuser privileges (eg. root).
calvin@linux-kmee:~> su
Password: 
linux-kmee:/home/calvin # nethogs
ioctl failed while establishing local IP for selected device eth0. You may specify the device on the command line.

I only have the one network device.

actually you can use
sudo nethogs eth0…if you have cable connection
sudo nethogs wlan0…if you have wireless
sudo nethogs ppp0…if you have a broadband modem

On Tue 18 Feb 2014 12:06:05 PM CST, rich1974 wrote:

actually you can use
sudo nethogs eth0…if you have cable connection
sudo nethogs wlan0…if you have wireless
sudo nethogs ppp0…if you have a broadband modem

Hi
Remember on >= 13.1 this has changed…

@OP, check your interface name via ifconfig, for example my eth0 is now
enp37s0 and wireless is wlo1.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

I don’t seem to have ifconfig:

calvin@linux-kmee:~> ifconfig
Absolute path to 'ifconfig' is '/sbin/ifconfig', so running it may require superuser privileges (eg. root).
calvin@linux-kmee:~> sudo ifconfig
root's password:
sudo: ifconfig: command not found

Also, Malcolm, here’s the output of those commands:

linux-kmee:/home/calvin # nethogs ppp0
ioctl failed while establishing local IP for selected device ppp0. You may specify the device on the command line.
linux-kmee:/home/calvin # nethogs eth0
ioctl failed while establishing local IP for selected device eth0. You may specify the device on the command line.

On Wed 19 Feb 2014 09:16:02 AM CST, Astralogic wrote:

malcolmlewis;2625598 Wrote:
> Hi
> Remember on >= 13.1 this has changed…
>
> @OP, check your interface name via ifconfig, for example my eth0 is
> now enp37s0 and wireless is wlo1.
>

I don’t seem to have ifconfig:

calvin@linux-kmee:~> ifconfig
Absolute path to ‘ifconfig’ is ‘/sbin/ifconfig’, so running it may
require superuser privileges (eg. root).

Hi
If running as your user it would be, else su - to root user (note the -
minus), I’m not a sudo fan :wink:

CODE
/usr/sbin/ifconfig



--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

very strange…
this is not the case on my machine:

linux-9gy1:/home/rich1974 # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:09:A6:30:43  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:21 


lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:220 errors:0 dropped:0 overruns:0 frame:0
          TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:12748 (12.4 Kb)  TX bytes:12748 (12.4 Kb)


ppp0      Link encap:Point-to-Point Protocol  
          inet addr:109.102.137.90  P-t-P:10.133.6.97  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:508716 errors:99 dropped:0 overruns:0 frame:0
          TX packets:265112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:140154036 (133.6 Mb)  TX bytes:17448400 (16.6 Mb)

On 2014-02-19 20:46, rich1974 wrote:
> very strange…
> this is not the case on my machine:

Check your path :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

On Wed 19 Feb 2014 07:46:02 PM CST, rich1974 wrote:

malcolmlewis;2625598 Wrote:
> Hi
> Remember on >= 13.1 this has changed…
>
> @OP, check your interface name via ifconfig, for example my eth0 is
> now enp37s0 and wireless is wlo1.
>
> –
> Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
> openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
> If you find this post helpful and are logged into the web interface,
> please show your appreciation and click on the star below… Thanks!

very strange…
this is not the case on my machine:

Code:

linux-9gy1:/home/rich1974 # ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:09:A6:30:43
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12748 (12.4 Kb) TX bytes:12748 (12.4 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:109.102.137.90 P-t-P:10.133.6.97 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:508716 errors:99 dropped:0 overruns:0 frame:0
TX packets:265112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:140154036 (133.6 Mb) TX bytes:17448400 (16.6 Mb)


Hi
Ahh you must be on 12.3 then?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

It wokred:

linux-kmee:~ # ifconfig
enp3s0    Link encap:Ethernet  HWaddr D4:3D:7E:F6:4B:24  
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::d63d:7eff:fef6:4b24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:1 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:19 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:7227 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7227 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3387144 (3.2 Mb)  TX bytes:3387144 (3.2 Mb)


But what does that mean?

On 2014-02-20 13:36, Astralogic wrote:
>
> It wokred:
>

>
> But what does that mean?

That you have one outside network interface named ‘enp3s0’. You may have
to tell that name to ‘nethogs’.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

no, i am on 13.1…
i see that nethogs is not even in the main repository. pretty sad…such an useful app.

On 02/20/2014 10:06 AM, rich1974 pecked at the keyboard and wrote:
> malcolmlewis;2625931 Wrote:
>> Hi
>> Ahh you must be on 12.3 then?
>>
>> –
>> Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
>> openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
>> If you find this post helpful and are logged into the web interface,
>> please show your appreciation and click on the star below… Thanks!
> no, i am on 13.1…
> i see that nethogs is not even in the main repository. pretty
> sad…such an useful app.
>
It may not be in the main repos but it is available at:


software.opensuse.org/package/nethogs

Ken

Astralogic wrote:
>
> It wokred:
>
>
> Code:
> --------------------
> linux-kmee:~ # ifconfig
> enp3s0 Link encap:Ethernet HWaddr D4:3D:7E:F6:4B:24
> inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::d63d:7eff:fef6:4b24/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:1 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Interrupt:19
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:65536 Metric:1
> RX packets:7227 errors:0 dropped:0 overruns:0 frame:0
> TX packets:7227 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:3387144 (3.2 Mb) TX bytes:3387144 (3.2 Mb)
>
>
> --------------------
>
>
> But what does that mean?
>
>
It means you should run nethogs like this until they enhance nethogs to
accommodate the new network interface naming convention.

sudo /usr/sbin/nethogs enp3s0


GNOME 3.10.2
openSUSE 13.1 (Bottle) (x86_64) 64-bit
Kernel Linux 3.11.6-4-desktop

Nethogs works now but it doesn’t report the correct transfer rates, not even close.

Is there some way to fix it or another bandwidth monitor I can try?

On 2014-02-21 11:36, Astralogic wrote:
> Is there some way to fix it or another bandwidth monitor I can try?

I use gkrellm. It just displays a graphic. I don’t know if that’s what
you want?


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

I’m really liking the look of this gkrellm, everything seems to be working expect for the network meter. This is what it looks like:

http://t.imgbox.com/8GzTmc1H.jpg](http://imgbox.com/8GzTmc1H)

At the bottom enp3s0 and ppp0 are only showing the title bar of the meter. I’m pretty sure I don’t have a ppp0 connection anyway. It looks like the network meter is simply closed/collapsed/minimized. Is this. normal?

Astralogic wrote:
>
> robin_listas;2626252 Wrote:
>> On 2014-02-21 11:36, Astralogic wrote:
>>> Is there some way to fix it or another bandwidth monitor I can try?
>>
>> I use gkrellm. It just displays a graphic. I don’t know if that’s what
>> you want?
>>
>> –
>> Cheers / Saludos,
>>
>> Carlos E. R.
>>
>> (from 13.1 x86_64 “Bottle” (Minas Tirith))
>
> I’m really liking the look of this gkrellm, everything seems to be
> working expect for the network meter. This is what it looks like:
>
> ‘[image: http://t.imgbox.com/8GzTmc1H.jpg]’ (http://imgbox.com/8GzTmc1H)
>
> At the bottom enp3s0 and ppp0 are only showing the title bar of the
> meter. I’m pretty sure I don’t have a ppp0 connection anyway. It looks
> like the network meter is simply closed/collapsed/minimized. Is this.
> normal?
>
>
Right click on it ==>Configuration==>Builtins==>Net==>Explore the tabs
and enable the relevant network interfaces


GNOME 3.10.2
openSUSE 13.1 (Bottle) (x86_64) 64-bit
Kernel Linux 3.11.6-4-desktop

On 2014-02-22 11:46, Astralogic wrote:

> I’m really liking the look of this gkrellm, everything seems to be
> working expect for the network meter. This is what it looks like:
>
> ‘[image: http://t.imgbox.com/8GzTmc1H.jpg]’ (http://imgbox.com/8GzTmc1H)
>
> At the bottom enp3s0 and ppp0 are only showing the title bar of the
> meter.

No, enp3s0 is working, but no activity is shown. ppp0 is currently
inactive. You can configure it out.

You could verify, perhaps, with another tool: iptraf. It is a text mode
tool, you can run it in an xterm, konsole, or equivalent (su to root first).


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))