Comments on Network Monitoring With ntop
Network Monitoring With ntop 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.
5 Comment(s)
Comments
Dear Team,
We facing the below error in ntop Please guide me.
[root@TEST ~]# ntop
Fri Mar 25 15:58:55 2011 NOTE: Interface merge enabled by default
Fri Mar 25 15:58:55 2011 Initializing gdbm databases
Fri Mar 25 15:58:55 2011 **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
Fri Mar 25 15:58:55 2011 Possible solution: please use '-P
Thanks in advance
Hi,
Ntop : Erro encontrado:
**ERROR**
....open of /var/lib/ntop/prefsCache.db failed: Can't b
/
Solução:
1. Passo matar serviço: aragorn:/var/lib/ntop # ps -aux | grep ntop
Warning:
bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
ntop 16289
0.5 3.2 108028 33880 pts/1 Sl
18:08 0:00 /usr/bin/ntop -P
/var/lib/ntop -i eth0 -u ntop -w 127.0.0.1:3000
root 16298
0.0 0.0 2316
704 pts/1 S+ 18:09
0:00 grep ntop
aragorn:/var/lib/ntop
# kill -9 16289
aragorn:/var/lib/ntop
# ps -aux | grep ntop
2. Passo inicar service com todas as
interfaces de rede monitoradas ntop.
aragorn:/var/lib/ntop
# ntop -i "eth0,eth1,eth2,br0,tap0" -d -L -u ntop -P /var/lib/ntop
--skip-version-check --use-syslog=daemon
Where,
§ -i "eth0,eth1" : Specifies
the network interface or interfaces to be used by ntop for network monitoring. Here you are
monitoring eth0 and eth1.
§ -d : Run ntop as a daemon.
§ -L : Send all log messages to the system log
(/var/log/messages) instead of screen.
§ -u ntop : Start ntop
as ntop user
§ -P /usr/local/var/ntop : Specify
where ntop stores database files. You may need to backup database as part of
your disaster recovery program.
§ --skip-version-check : By default,
ntop accesses a remote file to periodically check if the most current version
is running. This option disables that check.
§ --use-syslog=daemon : Use syslog
daemon.
Similar problem:
Starting 'ntop' via terminal [using Linux Mint (15 Olivia)] shows
"Initializing gdbm databases
**ERROR** ....open of /var/lib/ntop/prefsCache.db failed: File open error
Possible solution: please use '-P <directory>'
**FATAL_ERROR** GDBM open failed, ntop shutting down...
CLEANUP[t140028804217024]: ntop caught signal 2 [state=2]
ntop is now quitting..."
What to do now? I don't understand a word!
All I did to get rid of this error was:
sudo mkdir /var/lib/ntop
This creates a folder for ntop to put its db file.
If you still get the error after this try:
sudo touch /var/lib/ntop/prefsCache.dB
This will create an empty file of that name.
Elsewhere it has been suggested that this error can also be caused by ntop already running, but this wasn't the case for me.
I followed your instructions and NTOP is up and running, however, I tried to search some guides or tutorials t start using it, I am alwyas redirected to ntop.org where details on ntopng, no trace for ntop, any idea? should we upgrade? if yes, how as nothing is mentioned on the web site ntop.org