Nowdays computers are connected between each other. From the small area such as your home Local Area Network (LAN) until the the biggest one which we call – Internet. When you are managing a network computer, you are managing one of the most critical component. Since most of developed application is web based application, the network between critical.

There is why we need a network monitoring tool. One of the best network monitoring tool is called ntop. From Wikipediantop is a network probe that shows network usage in a way similar to what top does for processes. In interactive mode, it displays the networkstatus on the user’s terminal. In Web mode, it acts as a web server, creating a HTML dump of the network status. It supports a NetFlow/sFlowemitter/collector, a HTTP-based client interface for creating ntop-centric monitoring applications, and RRD for persistently storing traffic statistics

Now after 15 years, you will find ntopng – the next generation ntop.

What is ntopng

Ntopng is a high-speed web-based traffic analysis and flow collection. Ntopng is based from ntop. It’s run on every Unix platform, MacOS X and Windows.


From ntopng website, they said there are many features of it. Here’s some of the list :


  • Sort network traffic according to many protocols
  • Show network traffic and IPv4/v6 active hosts
  • Store on disk persistent traffic statistics in RRD format Geolocate hosts
  • Discover application protocols by leveraging on nDPI, ntop’s DPI framework
  • Show IP traffic distribution among the various protocols
  • Analyse IP traffic and sort it according to the source/destination
  • Display IP Traffic Subnet matrix (who’s talking to who?)
  • Report IP protocol usage sorted by protocol type
  • Produce HTML5/AJAX network traffic statistics



Ntop is available in pre-compiled packages for CentOS dan Ubuntu 64-bit based. You may find the packages in their download page. For 32-bit operating system, you have to compile it from the source. This article is tested on CentOS 6.4 32-bit version. But it may works also in other version of CentOS / RedHat based Linux. Let’s start.


Development Tools

You have to make sure that you have all development tools which is needed to compile ntopng. To install the development tools you can use yum command :

# yum groupinstall ‘Development Tools’

Install TCL

# yum install tcl

Install libpcap

# yum install libpcap libcap-devel

Install Redis

# wget
# tar zxfv redis-2.6.13.tar.gz
# cd redis-2.6.13
# make 32bit
# make test
# make install

Install ntopng

Method 1 :

# wget
# tar zxfv ntopng-1.1_6932.tgz
# cd ntopng-1.1_6932
# ./configure
# make
# make install

Method 2 :

On my CentOS 6.4 , I got an error message when using Method 1. Here’s the error message :

./third-party/LuaJIT-2.0.2/src/libluajit.a : could not read symbols : File in wrong format

So I switch to install it using SVN. Internet connection is required for this installation method. Here’s the steps :

# svn co
# ./
# ./configure
# make
# make install

Since ntopng is a web-based application, your system must have a working web-server installed

Create configuration files for ntopng

If everything is installed, then it’s time for us to running it. By default, redis and ntopng will installed in /usr/local/ folder if we don’t change the installation folder explicitly in ./configure step. Next we need to create configuration files for ntopng. In this article we use vi as text editor. You can use your favorite text editor to create ntopng configuration files.

# cd /usr/local/etc
# mkdir ntopng
# cd ntopng
# vi ntopng.start

Put these lines :
–local-network “”
–interface 1

# vi

Put this line :

Save those files and we can continue to the next step

Run ntopng

We assume that you have installed web server correctly, then the next step is to run redis server.

# /usr/local/bin/redis-server

Starting Redis Server

Then run ntopng

# /usr/local/bin/ntopng

Starting Ntopng

Testing ntopng

Now you can test your ntopng application by typing . You will see ntopng login page. For the first time, you can use user ‘admin’ and password ‘admin’.

Ntop Login page

The dashboard is quite simple. After you logged in, you will see an information about Top Flow Talkers.