Install and configure ntop for network stats, monitoring

by jagbir on November 29, 2008

ntop is one of the most powerful and easy to use tool for network traffic statistics viewing and analysis.

Here are quick steps to install it on CentOS 5.2 box (upgraded from 5.0 release).

Try to install in easy way:

$ yum install ntop

Most probably yum get failed for missing dependencies such as rrdtool package. If this is the case, download and install this package manually:

$ cd /usr/src
$ wget
$ rpm -ivh rrdtool-1.2.23-1.el5.rf.i386.rpm --nodeps

I’ve used –nodeps option in rpm command to ignore any dependencies. Yum will take care of that, we just need rrdtool as of now.

now try again with yum, ntop should be installed successfully:

$ yum install ntop

Configure ntop to suit your requirements, such as which network interface should it monitor and on which port (http port) should it display graphical interface.

$ vim /etc/ntop.conf

Save the file and start ntop with specifying the path of conf file:

$ ntop @/etc/ntop.conf

you can also handle it with more easy ‘service ntop start/stop’ commands.

ntop will start collecting network stats and you can view the graphs and further configure its graphical interface: http://localhost:3000/

You may also like to read:
* 5 steps to secure your Linux Server
* Ensuring secure access to production Linux Servers
* Bash script to backup essential log files in Linux
* Quickly change your ssh port from defualt 22 to something higher
* SSH port forwarding from remote to local machine
* Save root or user history to check later
* Install and configure denyhost to prevent brute force attacks

  • Elvis McNeely

    Thanks for your guide. It was helpful.

Previous post:

Next post: