Install ntop on CentOS

Install rpmforge repository:

There is an ntop rpm in the rpmforge repository:

yum install ntop

There is a bug in the /etc/init.d/ntop startscript we need to fix. Open the file in your favorite editor for example vim:

vim /etc/init.d/ntop

change the line at start function from:

daemon $prog -d -L @/etc/ntop.conf

daemon $prog @/etc/ntop.conf -d -L

first time you start ntop you need to set the admin password:

ntop @/etc/ntop.conf

you should now be able to start ntop deamon via:

service ntop start

if you want to start ntop at boot:

chkconfig --levels 35 ntop on

webinterface is running on http port 3000 and https on port 3001:


Please note ntop is using alot of systemresources. Check if it’s not to much for your smal virtualserver before you start tracing all the traffic.

3 thoughts on “Install ntop on CentOS

  1. Rene

    I installed the rpmforge repo and find the sample htop suggested (which is pretty cool in it’s own right) but no ntop:

    # yum install ntop
    Loaded plugins: presto
    Setting up Install Process
    No package ntop available.
    Error: Nothing to do

    Any idea?

    1. Banym Post author

      The package should be available on rpmforge repository. What’s the output for the command “yum info ntop” ?

      Should look like this:

      Available Packages
      Name : ntop
      Arch : i386
      Version : 3.3.8
      Release : 2.el5.rf
      Size : 3.8 M
      Repo : rpmforge
      Summary : Network traffic probe that shows the network usage
      URL :
      License : GPL
      Description: ntop is a network and traffic analyzer that provides a wealth of information
      : on various networking hosts and protocols. ntop is primarily accessed via a
      : built-in web interface. Optionally, data may be stored into a database for
      : analysis or extracted from the web server in formats suitable for
      : manipulation in perl or php.



  2. Pratish

    if you are using readily available vm image, iptables are Enable and only allow ssh from outside. Make sure you customize iptable to allow connection on port 3000 or 3001.


Leave a Reply

Your email address will not be published. Required fields are marked *