View previous topic :: View next topic |
Author |
Message |
slugggerzzz n00b
Joined: 07 Mar 2012 Posts: 65 Location: Manchester, UK
|
Posted: Wed May 30, 2012 11:17 am Post subject: Ntop wont start |
|
|
I have a problem with ntop, i have installed the software and all is well...
I have viewed guides online in relation to starting up/configuring it.
And well see below.
Code: |
tac+ ntop # /usr/bin/ntop -d -L -u ntop -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon
Wed May 30 12:12:37 2012 NOTE: Interface merge enabled by default
Wed May 30 12:12:37 2012 Initializing gdbm databases
Wed May 30 12:12:37 2012 **ERROR** ....open of /usr/local/var/ntop/prefsCache.db failed: File open error
Wed May 30 12:12:37 2012 Possible solution: please use '-P <directory>'
Wed May 30 12:12:37 2012 **FATAL_ERROR** GDBM open failed, ntop shutting down...
Wed May 30 12:12:37 2012 CLEANUP[t3067938784]: ntop caught signal 2 [state=2]
Wed May 30 12:12:37 2012 ntop is now quitting...
tac+ ntop #
|
I have changed the owner of file + DIR to ntop.
Also i changed the permissions to global read.
Both chnages had no effect.
The file exsists in /usr/local/var/ntop and i have specifyed the DIR with -P option.
Any more ideas ? _________________ Slugggerzzz ... |
|
Back to top |
|
|
slugggerzzz n00b
Joined: 07 Mar 2012 Posts: 65 Location: Manchester, UK
|
Posted: Wed May 30, 2012 11:23 am Post subject: Ntop wont start |
|
|
Code: |
tac+ ntop # chown -R ntop:ntop /var/lib/ntop
tac+ ntop # /usr/bin/ntop -d -L -u ntop -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon -P /var/lib/ntop/
Wed May 30 12:21:11 2012 NOTE: Interface merge enabled by default
Wed May 30 12:21:11 2012 **WARNING** Trailing slash removed from argument for option -P | --db-file-path
Wed May 30 12:21:11 2012 Initializing gdbm databases
Wed May 30 12:21:11 2012 **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
Wed May 30 12:21:11 2012 Possible solution: please use '-P <directory>'
Wed May 30 12:21:11 2012 **FATAL_ERROR** GDBM open failed, ntop shutting down...
Wed May 30 12:21:11 2012 CLEANUP[t3067111392]: ntop caught signal 2 [state=2]
Wed May 30 12:21:11 2012 ntop is now quitting...
tac+ ntop #
|
I have furthered my troubleshooting point it to the DIR and changing the owner.
Quote: |
tac+ ntop # ls -lh /var/lib/ntop
total 2.1M
-rwxrwxrwx 1 ntop ntop 224K May 30 11:29 fingerprint.db
-rwxrwxrwx 1 ntop ntop 2.0M May 30 11:29 macPrefix.db
-rwxrwxrwx 1 ntop ntop 13K May 30 11:30 ntop_pw.db
-rwxrwxrwx 1 ntop ntop 13K May 30 11:30 prefsCache.db
tac+ ntop #
|
_________________ Slugggerzzz ... |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Thu May 31, 2012 5:04 am Post subject: |
|
|
slugggerzzz,
It's been quite a long time since I had ntop installed, but what I can remember is net-analyzer/rrdtool also had to be installed.
After installation sudo ntop -A to set the admin password
sudo ntop -d -L to start it
Access ntop at http://ip_address:3000
Hope this helps a little _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
|