Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

CentOS

Bandwidth Monitoring with NTop (Network Top)

Problems/Issues during Installation/configuration:

1)   Unable to start NTOP Service.

[root@yourmachine ~] /etc/rc.d/init.d/ntop start
Starting ntop:    Processing file /etc/ntop.conf for parameters…
Tue Feb 10 15:17:06 2009  NOTE: Interface merge enabled by default
Tue Feb 10 15:17:06 2009  Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options…
,     –user ntop, ,   –db-file-path /var/ntop, ,     ,     ,       –use-syslog, ,     ,       ,     ,         ,     ,     

run ntop –help for usage information

Common problems:
-B “filter expressions” (quotes are required)
–use-syslog=facilty (the = is required)                                                           [FAILED]

Solutions:     This problem is highly reported since the release of an update ntop-3.3.8-1.el5.rf there is bug in init script of ntop. What you need is to modify the ntop init script. Follow me you will do it.

[root@yourmachine ~] vi /etc/rc.d/init.d/ntop
### locate the start() function
#————————-
start () {
echo -n $”Starting $prog: “
#    daemon $prog -d -L @/etc/ntop.conf   # modify this line
daemon $prog @/etc/ntop.conf -d -L
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/\$prog
return $RETVAL
}
#————————-

Save and exit and again try to start ntop service

[root@yourmachine ~] /etc/rc.d/init.d/ntop start
Starting ntop:    Processing file /etc/ntop.conf for parameters…
Tue Feb 10 15:25:34 2009  NOTE: Interface merge enabled by default
Tue Feb 10 15:25:34 2009  Initializing gdbm databases                                                          [  OK  ]

2)   Missing Dot Tool.

 

No worries, install graphvis rpm from rpmforge via yum.

[root@yourmachine ~]  yum install graphviz

Set permission on “dot”

[root@yourmachine ~]  chmod 777 /usr/bin/dot

I know it is not a good practice but for the time use it.

Now set dot path.

I hope you have enjoyed installation of Ntop.

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest