We shall explain what ntop is in this article. What is the installation procedure for ntop?
ntop is a network probe that displays network consumption in the same way that top displays process utilization. It displays the network status on the user’s terminal in an interactive manner. It acts as a web server in Web mode, generating an HTML dump of the network status. It’s a good idea to keep an eye on the server’s network utilization so that no bandwidth is wasted.
Install the prerequisites for installing ntop.
# yum install gcc gcc-c++ make libpcap libpcap-devel gdbm-devel libgd-devel libpng-devel libtool libtool-libs rrdtool rrdtool-devel –y
Download and extract ntop from sourceforge.
# cd /usr/local/src/
# wget wget http://downloads.sourceforge.net/project/ntop/ntop/ntop-4.0.1/ntop-4.0.1.tar.gz
# tar -zxvf ntop-4.0.1.tar.gz
# cd ntop-4.0.1
Let’s compile it now.
# make && make install
You may also get the message “Please install GeoIP” when compiling it. This indicates that GeoIP isn’t enabled on your server. As a result, you must now install GeoIP.
Start configuring ntop so that you may examine and manage statistics from your web browser. Create the ntop user and set the password. The password can then be established such that only the person with login credentials can change it. The admin user is created by default.
# useradd -M -s /sbin/nologin -r ntop
# ./ntop –A
Copy the configuration files to the proper location and assign ownership to the appropriate people.
# rsync -va /usr/local/src/ntop-4.0.1/* /usr/local/var/ntop/
# chown ntop:root /usr/local/var/ntop –R
Start service with command below.
# /usr/local/bin/ntop -d -L -u ntop -P /usr/local/var/ntop –skip-version-check –use-syslog=daemon
You can use a web browser to connect to ntop on port 3000. http://10.10.10.1:3000 is an example. The public IP address of your server is 10.10.10.1.