PDA

View Full Version : Software for monitoring network usage from applications


fedorer
21st January 2011, 09:49 AM
Hello,

I have a home PC which connects through internet via a Zyxel ADSL router. I use Fedora 14 as my one and only operating system and sometimes I am seeing the LEDs of my modem blinking very fast which means that something is downloading. I want to know which application download what on my PC. Is there any tool in Fedora that can show which application uses my network?

Thanks.

gthill
21st January 2011, 10:09 AM
open a terminal and use tcpdump

$man tcpdump

for basic use you can use

tcpdump -i eth0

read the man pages for many more options

stevea
21st January 2011, 11:13 AM

Or use wireshark for prettier/clearer info.

The system may be re-upping it's lease. It may be polling the weather for the date/weather app. You'll still have to look at the pack IP addresses and names and guess at the app.

fedorer
21st January 2011, 01:01 PM
I think that these that you suggest are sniffing tools. They are very low level. Can they show me for example if the updater tool searches for updates or that a daemon or other service which runs at the background uses my internet connection? I tried to use ntop but I find it too much for what I want.

:confused:

poncho68
21st January 2011, 01:10 PM
Try nethogs.

Name : nethogs
Arch : x86_64
Version : 0.7.0
Release : 8.fc12
Size : 56 k
Repo : installed
From repo : fedora
Summary : A tool resembling top for network traffic
URL : http://nethogs.sourceforge.net
License : GPL+
Description : NetHogs is a small "net top" tool.
:
: Instead of breaking the traffic down per protocol or per subnet, like
: most such tools do, it groups bandwidth by process and does not rely
: on a special kernel module to be loaded.
:
: So if there's suddenly a lot of network traffic, you can fire up
: NetHogs and immediately see which PID is causing this, and if it's
: some kind of spinning process, kill it.

fedorer
21st January 2011, 01:29 PM
Try nethogs.

Name : nethogs
Arch : x86_64
Version : 0.7.0
Release : 8.fc12
Size : 56 k
Repo : installed
From repo : fedora
Summary : A tool resembling top for network traffic
URL : http://nethogs.sourceforge.net
License : GPL+
Description : NetHogs is a small "net top" tool.
:
: Instead of breaking the traffic down per protocol or per subnet, like
: most such tools do, it groups bandwidth by process and does not rely
: on a special kernel module to be loaded.
:
: So if there's suddenly a lot of network traffic, you can fire up
: NetHogs and immediately see which PID is causing this, and if it's
: some kind of spinning process, kill it.

OK. This is exactly what I want. By the way is there any trick in order to run the program as normal user instead of root?