Can't start NTOP service/daemon

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Can't start NTOP service/daemon
# 8  
Old 06-22-2011
Thanks for reply you are perfect.

I have installed ntop again but I give error messages like below.
What is the meaning of "open of /usr/local/var/ntop/prefsCache.db failed: Can't be writer"
What do I need to do for this problem. mysql or something like that. What did I do wrong? I can't reach admin panel because password isn't compatible. pictures are attached. All of the data is removing when I stop ntop. I think ntop can't write any data in own file. but why?

Code:
# ntop
Wed Jun 22 10:38:00 2011  NOTE: Interface merge enabled by default
Wed Jun 22 10:38:00 2011  Initializing gdbm databases
Wed Jun 22 10:38:00 2011  **ERROR** ....open of /usr/local/var/ntop/prefsCache.db failed: Can't be writer
Wed Jun 22 10:38:00 2011  Possible solution: please use '-P <directory>'
Wed Jun 22 10:38:00 2011  **FATAL_ERROR** GDBM open failed, ntop shutting down...
Wed Jun 22 10:38:00 2011  CLEANUP[t3086170640]: ntop caught signal 2 [state=2]
Wed Jun 22 10:38:00 2011  ntop is now quitting...
#

Code:
#ntop -P /usr/local/var/ntop/
Wed Jun 22 11:08:53 2011  **WARNING** RRD:  rrd_update(/usr/local/var/ntop/rrd/interfaces/eth0/throughput.rrd)  error: opening '/usr/local/var/ntop/rrd/interfaces/eth0/throughput.rrd':  strerror_r failed. sorry!

Code:
# ls -l /usr/local/var/ntop/
total 6008
-rwxrwxrwx 1 root root  157692 Jun 22 10:51 addressQueue.db
-rwxrwxrwx 1 ntop root 4964435 Jun 22 10:51 dnsCache.db
-rwxrwxrwx 1 ntop root   12288 Jun 14 20:17 fingerprint.db
-rwxrwxrwx 1 ntop root   13867 Jun 22 10:51 LsWatch.db
-rwxrwxrwx 1 ntop root 1110238 Jun 14 20:17 macPrefix.db
-rwxrwxrwx 1 ntop root   12546 Jun 20 10:00 ntop_pw.db
-rwxrwxrwx 1 ntop root   13030 Jun 20 14:55 prefsCache.db
drwxrwxrwx 5 ntop root    4096 Jun 14 21:52 rrd
#

Can't start NTOP service/daemon-ntop1png
Can't start NTOP service/daemon-ntop2png
Can't start NTOP service/daemon-ntop3png
# 9  
Old 06-22-2011
* what is the permission on "/usr/local/var/ntop"
Code:
# ls -ld usr/local/var/ntop

* check if any running daemon or instances fırstly kill it.
Code:
# [[ $(pgrep ntop) ]] && killall ntop

*try start ntop again
Code:
# ntop -d -u ntop -P /usr/local/var/ntop --skip-version-check -L --use-syslog=daemon

* look ntop logs that what happened
Code:
# tail -f /var/log/messages

# 10  
Old 06-28-2011
Thanks friend. I have controlled files and folders permissions go by /var/log/messages.
I can reach to configuration page of admin site.

*All of data is removed when service is stoped. Could you offer a suggestion about storing information.
*How can I limit to reach http://ntop:3000 page from LAN. I want that only 3 or 4 person can browse this page. Is iptables enough for limiting the users. or .....?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to integrate all the systemctl commands into a shell script to verify any daemon/agent service?

Hi, Can we integrate all the systemctl command into a shell script to verify any service with all the options of systemctl if service integrate with the operating system service management tools to deliver their functionality. sudo systemctl start <service_name> sudo systemctl stop... (1 Reply)
Discussion started by: Mannu2525
1 Replies

2. Shell Programming and Scripting

not able to start xvfb service via rc script

Hi , I am having this start script to start xvfb under rc3.d but it fails during system startup saying unable to open display. also manually if i try to execute the script , it does not work. But if i execute what ever is there in the script line by line on my SHELL , it starts well. ... (2 Replies)
Discussion started by: chidori
2 Replies

3. Ubuntu

start service when get login prompt

Hi Team, I am using DRBL environment on Ubuntu. When my machine starts some times it's not starting lxdm & nslcd service. Because of that i didn't get graphic mode & also not able to authenticate user as nslcd is also stops. I have to login as root and restart these two services, then i am able... (0 Replies)
Discussion started by: paragnehete
0 Replies

4. AIX

How to start rstatd Daemon

guy's How to start rstatd Daemon on AIX 6.1 as I enable it from etc/inetd.conf then I refreshed it by this command refresh -s inetd but stil is not Active ! can some one advice in this ! (7 Replies)
Discussion started by: ITHelper
7 Replies

5. Red Hat

difference between restarting a daemon and a service

Hi, Can you please clear me the difference between restarting the daemon and the service. To be more clear, /etc/init.d/mysqld restart and /etc/init.d/mysqld restart What is the difference on this both two?..... (4 Replies)
Discussion started by: gsiva
4 Replies

6. AIX

Q: how to start a service when system start

As topic, assume we have a service called "blahservice" and we can start it by: startsrc -s blahservice what is the best practice to run such command when system start? - directly use mkitab to add it into /etc/inittab or - drop startup scripts in /etc/rc.d/rcX.d I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies

7. Ubuntu

How can I automatically start a daemon at boot time.

Hi masters, I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task. Also what are... (3 Replies)
Discussion started by: iamjayanth
3 Replies

8. Programming

MySQL service start error

Hi, I have installed MySql version 5.0.67 in RedHat LINUX version 5. The installation completed successfully. When I am trying to start the service an error occured the error shown below ".......Manager of pid-file quit without updating file" Can anyone help me to fix the problem.... (4 Replies)
Discussion started by: saravanakumar
4 Replies

9. Shell Programming and Scripting

Start a service as user

Hi I need a service to be start as user after a reboot. My script in /etc/init.d contain the following: start() { su - $USER cd ${INSTALL_PATH}/bin ./MyApp -X exit return 0 } This function stops after su - $USER, I get user shell, and only if I manualy... (5 Replies)
Discussion started by: potro
5 Replies

10. UNIX for Dummies Questions & Answers

Making a Script to Start as a Service

Hi, I have a shell script t1.sh. on my solaris box. So, what are the steps required to make this script run as a Service, when the system re-starts. (for ex:- at run level 3). I know that I should use the rc.d folders. But I don't know the exact steps. Kindly explain, Thanks in... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies
Login or Register to Ask a Question