Database Backend ndo2db is not running but subsystem locked

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
martinkuriax
Posts: 37
Joined: Tue Jul 01, 2014 12:21 pm

Database Backend ndo2db is not running but subsystem locked

Post by martinkuriax »

Database Backend ndo2db is not running but subsystem locked what could be the problem kindly advise
martinkuriax
Posts: 37
Joined: Tue Jul 01, 2014 12:21 pm

Re: Database Backend ndo2db is not running but subsystem loc

Post 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...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Database Backend ndo2db is not running but subsystem loc

Post by scottwilkerson »

martinkuriax wrote: I have resolved the issue with the following steps:
Glad to hear it is resolved!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked