Install ntop on CentOS

Install rpmforge repository: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

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
to:

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:

http://<ip>:3000

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.

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

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?

    Reply
    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 : http://www.ntop.org/
      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.

      Regards,

      Dominik

      Reply
  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.

    Reply

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>