How to Install ntopng ( ntop) Network Monitor on Ubuntu Linux

This brief tutorial shows students and new users how to install and configure ntopng (top), the next generation of the original top utility in Linux systems, including Ubuntu.

The original ntop tool provides a network traffic probe that monitors network usage. ntopng is based on that and provides an intuitive, encrypted web user interface of realtime and historical traffic information.

For those who don’t know about ntop, it’s an open-source utility for monitoring Linux systems, including Ubuntu. Ntop does not provide a user-friendly user web interface, but you use it to monitor CPU, Memory & Disk Usage, and services from the command line terminal.

ntopng comes in three versions, Community, Professional (Small Business Edition), and Enterprise. The Community version is free to use and open source (code can be found on GitHub).

For more about ntopng, please visit its homepage.

Below are some highlights of ntopng:

  • Sort network traffic according to many criteria including IP address, port, L7 protocol, throughput, Autonomous Systems (ASs)
  • Show realtime network traffic and active hosts
  • Produce long-term reports for several network metrics including throughput and application protocols
  • Top talkers (senders/receivers), top ASs, top L7 applications
  • Monitor and report live throughput, network and application latencies, Round Trip Time (RTT), TCP statistics (retransmissions, out of order packets, packet loss), and bytes and packets transmitted
  • Store on disk persistent traffic statistics to allow future explorations and post-mortem analyses
  • Geolocate and overlay hosts in a geographical map
  • Discover application protocols (Facebook, YouTube, BitTorrent, etc) by leveraging on nDPI, ntop Deep Packet Inspection (DPI) technology

To install, follow the steps below:

Install ntopng (ntop) Repository

ntopng has its Repository that can downloaded and installed easily on Ubuntu systems. To do that, run the command below:

cd /tmp
sudo dpkg -i apt-ntop.deb

After installing its Repository above, run the commands below to install ntopng and related dependencies.

sudo apt update
sudo apt install pfring-dkms nprobe ntopng n2disk cento

When ntopng is installed, you may go to its configuration file and make the changes below. ntopng default configuration file located at /etc/ntopng/ntopng.conf:

sudo nano /etc/ntopng/ntopng.conf

Make the highlighted changes and save the file. This tells ntopng to listen for traffic on port # 3000

#       -e|--daemon
#        This  parameter  causes ntop to become a daemon, i.e. a task which runs in the background
# -e=
#       -i|--interface
#        Specifies  the  network  interface or collector endpoint to be used by ntopng for network
# -i=eth1
# -i=eth2
#       -w|--http-port
#        Sets the HTTP port of the embedded web server.

After saving the exiting the file, run the commands below to edit the file and specify the local network to monitor.

sudo nano /etc/ntopng/ntopng.start

Add the following lines as per your network layout.

--local-networks ""
--interface 1

Save and close the file, then restart ntopng and enable it to start on boot time:

sudo systemctl start ntopng
sudo systemctl enable ntopng

Log in to Web Interface

After that, log in to the web interface by typing the server IP address or hostname followed by port #3000


You should see a ntopng login page.

The default login credentials:

Username: admin
Password: admin

After logging in you should begin setting up your environment.

From its dashboard, you can view information about systems and networks.

Congratulations! You have learned how to install and use ntopng system optimizer and monitoring

You may also like the post below: