Install and configure iftop (network analyser) – Unix/Linux

How to install iftop on Unix/Linux server?

The command “iftop” is using for bandwidth (BW) monitoring on a server. It is simple to monitor a server BW with iftop command.

You can analyse the incoming and outgoing packets using iftop tool. This is very useful to analyse network outages or some kind of network level attacks. In this article, I am sharing the steps to install this tool on your Linux box.

How to install iftop on my server?

Ya.. Its really simple to install iftop on your Unix/Linux server. The following steps will help you to install iftop.

ssh to your server---->

[[email protected]]# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
[[email protected]]# tar -zxvf iftop-0.17.tar.gz
[[email protected]]# cd iftop-0.17
[[email protected]]# ./configure

For a fresh server you may get an error like this 🙁 don’t worry about that,

...................
...................
checking for gawk... gawk
checking whether make sets ${MAKE}... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

That means server needs gcc for compilation

[[email protected]]# yum install gcc

Again run this

[[email protected]]# ./configure
................
................
checking how to call gethostbyaddr_r... 8 args, int return
checking gethostbyaddr_r usability... yes
checking where to find pcap.h... no idea
configure: error: can't find pcap.h
You're not going to get very far without libpcap.
[[email protected]]# yum -y install libpcap libpcap-devel
[[email protected]]# ./configure
................
................
checking pcap.h presence... yes
checking for pcap.h... yes
checking for a curses library containing mvchgat... none found
configure: error: Curses! Foiled again!
(Can't find a curses library supporting mvchgat.)
Consider installing ncurses.
[[email protected]]# yum -y install ncurses ncurses-devel
[[email protected]]# ./configure
[[email protected]]# make
[[email protected]]# make install

That’s it.. These are the simple steps to install iftop on your server.

Related topics:

Bandwidth monitoring on linux server with iftop command

What is a Linux container?

Basic: Containerisation helps to isolate processes. You can run your App/Services as an isolated process, running from a distinct image that provides all files necessary to support the processes.

Basically Linux containers are OS level virtualisation technique for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel.

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
I like to travel. My travelogues are published at Trip Mentor

2 thoughts on “Install and configure iftop (network analyser) – Unix/Linux

Leave a Reply

Your email address will not be published. Required fields are marked *