Network Monitoring With ntop on CentOs 5 January 7, 2011Posted by Tournas Dimitrios in Linux, Linux admin tools.
ntop is a network traffic tools that shows network usage in a real time. One of the good things about this tool is that you can use a web browser to manage and navigate through ntop traffic information to better understand network status.
NTop users can use a a web browser (e.g. firefox, netscape) to navigate through ntop (that acts as a web server) traffic information and get a dump of the network status. In the latter case, ntop can be seen as a simple RMON-like agent with an embedded web interface.
The use of:
- a web interface
- limited configuration and administration via the web interface
- reduced CPU and memory usage (they vary according to network size and traffic)
This document will help in installation and configuration of NTOP on Centos, I am assuming that you have installed Centos 5 with all necessary packages but minimal installation is preferred.
Lets install NTOP :
- ntop is provided as a ready-made package from the EPEL repository , so installing with yum is an easy step : yum install ntop
Important File/Folder Locations:
1 ntop.conf /etc/ntop.conf
2 Init Script /etc/rc.d/init.d/ntop
3 NTOP Daemon /usr/bin/ntop
4 NTOP plugins /usr/lib/ntop/plugins
5 NTOP Documents /usr/share/doc/ntop-3.3.8
6 NTOP Html folder /usr/share/ntop/html
7 Perl Scripts /usr/share/ntop/perl
8 NTOP man /usr/share/man/man8/ntop.8.gz
- Password Setting for NTOP admin user:
[root@yourmachine ~] ntop –A
Mon Jan 10 03:38:34 2009 NOTE: Interface merge enabled by default
Mon Jan 10 03:38:34 2009 Initializing gdbm databases
ntop startup – waiting for user response!
Please enter the password for the admin user:
Please enter the password again:
Dec 23 20:45: 22 2010 Admin user password has been set
Press enter and set password for the admin user.
- Basic Configuration of NTOP:Edit /etc/ntop.conf file in your faviorate editor and enable the misc options.(you can modify as per your requirement) .
- Starting NTOP Service:
[root@yourmachine ~] /etc/rc.d/init.d/ntop start
Starting ntop: Processing file /etc/ntop.conf for parameters…
Dec 23 21:30:23 2010 NOTE: Interface merge enabled by default
Dec 23 21:30:23 2009 Initializing gdbm
- Accessing NTOP Web console : Open your favorite web explorer and type in URL box.
- Problems/Issues during Installation/configuration:
[root@yourmachine ~] yum install graphviz
Set permission on “dot”
[root@yourmachine ~] chmod 777 /usr/bin/dot