Networking • Automation • Occasional Podcasting
, ,

Install NTOP On Your CactiEZ Server

NTOP is a netflow collector, or it can be used to promiscuously sniff on a port.

I do prefer flow viewer, but for those of you that prefer an easier, friendlier interface, here’s how you install NTOP.

Set your repository up for dag:

rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm

Then install ntop:

yum install ntop

You will need to setup an admin password:

/usr/bin/ntop

It will prompt you for the admin password, go ahead and assign it.

Then make an allowance in your firewall for port 3000:

Using webmin add tcp 3000

Be sure to apply those firewall changes.

Edit /etc/init.d/ntop as follows:
Change

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

to

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

Issue the below to start ntop:

service ntop start

Browse to http://cactiIP:3000. Then configure your startup settings using username admin and whatever password you set above.

I’m dumping netflow, so I went to plugins -> netflow and enabled it.
I then configured a netflow interface.
I then switched the listening NIC to that netflow interface.

Following this I set my router to dump the netflow to my server:

router-(config)#interface FastEthernet 0/1
router-(config-if)#ip route-cache flow
router-(config-if)#exit
router-(config)#ip flow-export destination 192.168.0.2 2055
router-(config)#ip flow-export source FastEthernet 0/1
router-(config)#ip flow-export version 5
router-(config)#ip flow-cache timeout active 5
router-(config)#ip flow-cache timeout inactive 300

Be sure to add the cache flow command to all interfaces that data moves in and out on. The netflow info is only generated incoming into the interface.

Done.

Comments

5 responses to “Install NTOP On Your CactiEZ Server”

  1. Jimmy Avatar

    And watch your Cacti server die under the memory strain of NTop.

  2. Greg Avatar

    You are so optimistic 😉

  3. Sophie Avatar
    Sophie

    Thanks! Very informative post. Personally, I’ve been using Scrutinizer (www.plixer.com) on a separate machine for monitoring my NetFlow traffic and it has been working great. But it is nice to know there are other options out there.

  4. Hamed Kazemian Avatar
    Hamed Kazemian

    Are you using CactiEZ ? Is the performance good? I always try it on FreeBSD and it’s bloody stable.

  5. Greg Avatar

    Indeed I do run CactiEZ, and it runs smooth as silk my friend. 🙂

Leave a Reply

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