Page 1 of 1

Database Backend ndo2db is not running but subsystem locked

Posted: Mon Feb 18, 2019 8:02 am
by martinkuriax
Database Backend ndo2db is not running but subsystem locked what could be the problem kindly advise

Re: Database Backend ndo2db is not running but subsystem loc

Posted: Mon Feb 18, 2019 8:12 am
by martinkuriax
martinkuriax wrote:Database Backend ndo2db is not running but subsystem locked what could be the problem kindly advise

I have resolved the issue with the following steps:

# service ndo2db status
ndo2db is not running but subsystem locked

# service nagios stop
Stopping nagios (via systemctl): [ OK ]

# ls -l /usr/local/nagios/var/ndo*
-rw-r--r-- 1 nagios nagios 5 Feb 11 10:16 /usr/local/nagios/var/ndo2db.lock
-rw-r--r-- 1 nagios nagios 2610399 Feb 18 16:06 /usr/local/nagios/var/ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Feb 11 10:16 /usr/local/nagios/var/ndo.sock

# mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
# mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak


# service nagios status
No lock file found in /usr/local/nagios/var/nagios.lock

# service nagios start
Starting nagios (via systemctl): [ OK ]

# service ndo2db start
Starting ndo2db (via systemctl): [ OK ]

# service ndo2db status
ndo2db (pid 5573) is running...

Re: Database Backend ndo2db is not running but subsystem loc

Posted: Mon Feb 18, 2019 9:49 am
by scottwilkerson
martinkuriax wrote: I have resolved the issue with the following steps:
Glad to hear it is resolved!

Locking thread