Bug 453133 - Review Request: nethogs - top-like tool for network bandwidth
Review Request: nethogs - top-like tool for network bandwidth
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: Package Review (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Marek Mahut
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-27 10:28 EDT by Anderson Silva
Modified: 2008-06-29 18:01 EDT (History)
2 users (show)

See Also:
Fixed In Version: 0.7-2.20080627cvs.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-06-29 18:00:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
mmahut: fedora‑review+
kevin: fedora‑cvs+


Attachments (Terms of Use)
Proposed patch (301 bytes, text/x-patch)
2008-06-27 10:50 EDT, Marek Mahut
no flags Details

  None (edit)
Description Anderson Silva 2008-06-27 10:28:12 EDT
Spec URL: http://www.the-silvas.com-a.googlepages.com/nethogs.spec
SRPM URL: http://www.the-silvas.com-a.googlepages.com/nethogs-0.7-1.20080627cvs.fc8.src.rpm
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.

NOTE 1 - This tool is under the Fedora Packages WishList.
NOTE 2 - I currently maintain the rpmrebuild packages as well, therefore this is *NOT* my first package.
Comment 1 Marek Mahut 2008-06-27 10:38:52 EDT
Hey Anderson,

This package does not build under gcc 4.3 (>Fedora 9), patching is needed.

  g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
  --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables decpcap_test.cpp decpcap.o -o decpcap_test -lpcap -lm 
  conninode.cpp: In function 'void addtoconninode(char*)':
  conninode.cpp:48: error: 'exit' was not declared in this scope
  conninode.cpp: In function 'void refreshconninode()':
  conninode.cpp:162: error: 'exit' was not declared in this scope
  make: *** [conninode.o] Error 1
  make: *** Waiting for unfinished jobs....
Comment 2 Marek Mahut 2008-06-27 10:50:05 EDT
Created attachment 310442 [details]
Proposed patch

In gcc 4.3, the headers been cleaned up to compile and run faster, but now you
have to be sure that you #include everything you really use in the application
itself...
Comment 3 Marek Mahut 2008-06-27 10:55:29 EDT
Please submit a new patched package that will build under gcc 4.3 and also
rpmlint is not happy about lib dependencies.

 nethogs.i386: E: explicit-lib-dependency libcap 
 nethogs.i386: E: explicit-lib-dependency libstdc++
Comment 4 Anderson Silva 2008-06-27 10:58:37 EDT
Marke, the rpmlint issue has been fixed... you were too quick for me :-)

I've contacted upstream about the issue with the compilation, I will try to fix it, and submit them 
a patch.
Comment 5 Anderson Silva 2008-06-27 11:15:48 EDT
Ok... net spec updloaded, and new src rpm that compiles under Fedora 

Spec URL: http://www.the-silvas.com-a.googlepages.com/nethogs.spec
SRPM URL: http://www.the-silvas.com-a.googlepages.com/
nethogs-0.7-2.20080627cvs.fc9.src.rpm
Comment 6 Anderson Silva 2008-06-27 11:16:49 EDT
Fixing URL:

SRPM URL: http://www.the-silvas.com-a.googlepages.com/
nethogs-0.7-2.20080627cvs.fc9.src.rpm

Comment 7 Anderson Silva 2008-06-27 11:18:27 EDT
Last try, my browser is being stupid:

Spec URL: http://www.the-silvas.com-a.googlepages.com/nethogs.spec
SRPM URL:
http://www.the-silvas.com-a.googlepages.com/nethogs-0.7-2.20080627cvs.fc9.src.rpm
Comment 8 Marek Mahut 2008-06-27 12:47:23 EDT
Package looks sane, all works.

APPROVED.
Comment 9 Anderson Silva 2008-06-27 12:58:08 EDT
New Package CVS Request
=======================
Package Name: nethogs
Short Description: top-like tool for network bandwidth
Owners: afsilva
Branches: F-8 F-9 EL-5
InitialCC:
Cvsextras Commits: yes
Comment 10 Kevin Fenzi 2008-06-27 13:03:42 EDT
cvs done.
Comment 11 Fedora Update System 2008-06-27 15:03:10 EDT
nethogs-0.7-2.20080627cvs.fc8 has been submitted as an update for Fedora 8
Comment 12 Fedora Update System 2008-06-27 15:04:46 EDT
nethogs-0.7-2.20080627cvs.fc9 has been submitted as an update for Fedora 9
Comment 13 Fedora Update System 2008-06-28 18:15:51 EDT
nethogs-0.7-2.20080627cvs.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nethogs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-5810
Comment 14 Fedora Update System 2008-06-29 18:00:43 EDT
nethogs-0.7-2.20080627cvs.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 15 Fedora Update System 2008-06-29 18:01:02 EDT
nethogs-0.7-2.20080627cvs.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.