HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


HOW TO SET UP A NETWORK TRAFFIC MONITORING DASHBOARD IN CENTOS 7

WHAT IS NTOPNG?

Ntopng is a traffic monitoring tool with a focus on flows and statistics related to any traffic that goes through a server. It is the next generation of the original ntop, which monitors network usage. Ntopng is based on libpcap and can run on multiple environments such as Unix, Windows, and MacOS. Additionally, with ntopng, you get an intuitive, encrypted web interface which can be used to explore real-time as well as historical traffic data.

BENEFITS OF USING NTOPNG

  • It can show real-time network traffic and list all associated hosts
  • Produces analytical reports of several network metrics including throughput and application protocols
  • You can sort network traffic data based on several criteria such as throughput, IP address, port, L7 protocol and autonomous system (AS)
  • Provides analytics about top senders, receivers, top AS and top L7 applications
  • Includes TCP statistics such as retransmissions, packet loss, out of order packets etc
  • Can monitor live traffic throughput, network and application latencies, Round Trip Time (RTT)
  • Full support for IPv4 and IPv6
  • Full Layer-2 support (including ARP statistics)
  • Support for MySQL, ElasticSearch and LogStash export of monitored data
  • Interactive historical exploration of monitored data exported to MySQL
  • Alerts engine to capture anomalous and suspicious hosts
  • SNMP v1/v2c support and continuous monitoring of SNMP devices
  • Can report IP protocol usage sorted by protocol type
  • Produces HTML5/AJAX network traffic statistics
  • It can analyze IP traffic and sort it according to the source/destination
  • It can characterize HTTP traffic by leveraging on characterization services provided by Google and HTTP Blacklist
  • Can 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
  • Stores disk-persistent traffic stats to allow for future analyze and post-mortem analyses

In today’s tutorial, we will show you how to setup ntopng in CentOS 7.

PREREQUISITE

  • A completely installed CentOS 7 server

NTOPNG INSTALLATION

By default, ntopng is not available in the CentOS 7 repository. To get it, you will need to add the EPEL repository to your system by using the following command – sudo yum install epel-release

epel

Once this is executed, you need to create a ntop repository for stable builds. This requires the creation of file ntop.repo inside /etc/yum.repos.d directory. Once the file is created you can add the following contents to the file.

[ntop]
name=ntop packages
baseurl=http://www.nmon.net/centos-stable/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri
[ntop-noarch]
name=ntop packages
baseurl=http://www.nmon.net/centos-stable/$releasever/noarch/
enabled=1
gpgcheck=1
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri

Save the file and use the following command: yum -y update to update the repository and all installed packages. This would take some time to complete. Once this is completed, you can install ntopng by using the following command- yum –enablerepo=epel install redis ntopng

Installntopng

 

START NTOPNG AND REDIS SERVICES

Once ntopng is installed, you need to install the Redis package and start Redis server before starting ntopng. This can be installed using the following command – yum –enablerepo=epel install hiredis-devel

redis

To start Redis service and enable the service to start at boot time, you can use the following commands-

  • systemctl start redis.service
  • systemctl enable redis.service

Similarly to start ntopng and enable the service to start at boot time, you can use the following commands-

  • systemctl start ntopng.service
  • systemctl enable ntopng.service

 

CONFIGURE NTOPNG

Ntop will create a default configuration at /etc/ntopng/ntopng.conf.To check the ntopng status you can use the following command- systemctl status ntopng. In case you see any warning in the status, then you can remove the warning by editing the ntopong configuration file. Add the following line to the file and save the file.

  • -G=/var/tmp/ntopng.pid\

After the change, restart ntopng and check the status using the following commands-

  • systemctl restart ntopng
  • systemctl status ntopng

ALLOW NTOPNG THROUGH THE FIREWALL

The default port for Ntopng is 3000. In order to use this, you will have to add a firewall rule to allow access to ntopng from a remote machine. This can be done by using the following command- firewall-cmd –permanent –add-port=3000/tcp.

Reload the firewalld service using the following command- firewall-cmd –reload

This completes all the basic configurations, now you can access ntopng through a web browser using the URL http://<your IP address>:3000. The default login information is userName: admin and password: Admin.

From here on you can start using ntopng for network monitoring.

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 12345
6789101112
13141516171819
20212223242526
27282930 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional