Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've installed ntop on centos 5.9 using yum. But it doesn't start. I'm getting this error:

 Wed Mar 20 10:22:44 2013  **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
Wed Mar 20 10:22:44 2013  Possible solution: please use '-P <directory>'
Wed Mar 20 10:22:44 2013  **FATAL_ERROR** GDBM open failed, ntop shutting down...
Wed Mar 20 10:22:44 2013  CLEANUP[t47669729537792]: ntop caught signal 2 [state=2]
Wed Mar 20 10:22:44 2013  ntop is now quitting...
Wed Mar 20 10:25:01 2013  NOTE: Interface merge enabled by default
Wed Mar 20 10:25:01 2013  Initializing gdbm databases
Wed Mar 20 10:25:01 2013  **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
Wed Mar 20 10:25:01 2013  Possible solution: please use '-P <directory>'
Wed Mar 20 10:25:01 2013  **FATAL_ERROR** GDBM open failed, ntop shutting down...
Wed Mar 20 10:25:01 2013  CLEANUP[t47959862075136]: ntop caught signal 2 [state=2]
Wed Mar 20 10:25:01 2013  ntop is now quitting...

I set permissions 777 to /var/lib/ntop and all files in it. Still doesn't work.

share|improve this question

2 Answers 2

Try entering

ps -ax | grep ntop

into terminal to view ntop processes running, then type

sudo kill-9 (process #'s)

replacing (process #'s) with the process ids shown.

Make sure that when your done using ntop you ctrl+C to quit, not ctrl+z. Using control z leaves a "stray" ntop program running.

share|improve this answer

Fixed it by killing ntop service, changing owner to ntop and starting it again

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.