Database backend component won't start

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Database backend component won't start

Post by anoopjeev »

HI all,

Database back end is not running on my nagiosXI. My nagiosxi GUI looks fine, its still monitoring everything.

Code: Select all

[root@localhost /]# service ndo2b status
Redirecting to /bin/systemctl status ndo2b.service
Unit ndo2b.service could not be found.
[root@localhost /]# service ndo2b start
Redirecting to /bin/systemctl start ndo2b.service
Failed to start ndo2b.service: Unit not found.
I have attached an image. Please let me know on how to proceed with this.

Anoop.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Database backend component won't start

Post by npolovenko »

Hello, @anoopjeev. Please run the following commands in order:

Code: Select all

service nagios stop
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 start
service ndo2db start
Does that fix the issue?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: Database backend component won't start

Post by anoopjeev »

@ npolovenko Thank you very much.
It fixed the issue.
Can you please explain what caused the issue and
what did the both commands do it resolve it.

Thank you very much again.

-Anoop.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Database backend component won't start

Post by npolovenko »

@anoopjeev, Glad to hear! Well, it's hard to tell what exactly caused it without looking through your system log files. The most common reason is when people restart the VM or server without using a soft-restart command like shutdown -r. Or sometimes this happens after you upgrade the XI.
The reason why those two files need to be removed is that when ndo2db script starts it checks if they exist and if they do the script thinks that ndo2db daemon is already running... But if ndo2db was shutdown incorrectly or crashed that is obviously not the case. Hope that explains it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: Database backend component won't start

Post by anoopjeev »

Thanks for the explanation. You can close this as resolved. THANKS!!!!!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Database backend component won't start

Post by tmcdonald »

Glad to hear it! I'll be closing this up now, but feel free to open another thread if you need anything in the future!
Former Nagios employee
Locked