How to Install Ntopng on CentOS 7

r00t August 28, 2017

Install Ntopng on CentOS 7

In this tutorial we’ll learn how to install Ntopng on CentOS 7. We will also install and configure its prerequisites. The Ntopng is an open-source network traffic monitoring system that provides a web interface for real-time network monitoring. Ntopng provides several tools for monitoring various protocols, traffic variants and bandwidth across multiple time frames. You can install ntopng on any monitoring server connected to your network and use a web browser to access real-time traffic reports available on the server.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Ntopng on CentOS 7

Step 1. First, ensure your system is fully up-to-date by running the following:

yum -y update

Step 2. Installing Ntopng.

Ntopng is not available in the default CentOS 7 repository. To begin, you will need to add the EPEL repository to your system by running the following command:

sudo yum install epel-release

Install the ntopng by executing the following command and press y to continue with the installation procedure:

sudo yum -y update
sudo yum --enablerepo=epel install redis ntopng

Once ntopng and its dependencies have been installed, you need to start the redis service and the ntopng service one by one:

sudo systemctl start redis.service
sudo systemctl enable redis.service
sudo systemctl start ntopng.service
sudo systemctl enable ntopng.service

Step 3. Configure Ntopng.

Ntop will create a default configuration file at /etc/ntopng/ntopng.conf. However if you check the status, you’ll see that ntop gives you a “No Pro licence is found” error, and announces that it will return to community mode after 10 minutes:

sudo systemctl status ntopng

How to Install Ntopng on CentOS 7

You can fix the license error by modifying the ntopng configuration file:

nano /etc/ntopng/ntopng.conf

Add/change the line shown below:


Save and exit the file, restart ntopng and check status again:

sudo systemctl restart ntopng
sudo systemctl status ntopng

Step 4. Configure Firewall Ntopng.

Now open the following port to public using firewall-cmd:

sudo firewall-cmd --zone=public --permanent --add-port=3000/tcp
sudo firewall-cmd --reload

Step 5. Access the Web Interface Ntopng.

To access the Monit web interface, open the browser, go to the ip of the server http://ip.address:3000. By default the username and pasword is “admin

Congratulation’s! You have successfully install and configured Ntopng network traffic monitoring on your CentOS 7 server.


The Tags:

Leave a Comment

Comments are closed.