What is nethogs and how does it work?

What is nethogs and how does it work?

NetHogs is a small ‘net top’ tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded. If there’s suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this.

How do I upgrade or remove nethogs from my system?

When upgrading (or downgrading), you can simply install the new version ‘over’ the old one. If you want to remove Nethogs from your system, you can: In order to be run by a non-root user, nethogs needs the cap_net_admin and cap_net_raw capabilities.

What do I need to install to build nethogs?

Nethogs depends on ncurses for the text-based interface and libpcap for user-level packet capture. So you need to install both development libraries before building nethogs. The master branch is intended to be stable at all times: When upgrading (or downgrading), you can simply install the new version ‘over’ the old one.

Does nethogs require a special kernel module?

NetHogs does not rely on a special kernel module to be loaded. If there’s suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth.

NetHogs is a small ‘net top’ tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded. If there’s suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this.

How to install nethogs in RHEL?

Install NetHogs in RHEL, CentOS and Fedora. To install nethogs, you must turn on EPEL repository under your Linux systems and then run the following yum command to download and install nethogs package.

author

Back to Top