Page 1 of 1

Database backend component won't start

Posted: Wed Jan 24, 2018 2:51 pm
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.

Re: Database backend component won't start

Posted: Wed Jan 24, 2018 3:44 pm
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?

Re: Database backend component won't start

Posted: Wed Jan 24, 2018 4:27 pm
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.

Re: Database backend component won't start

Posted: Wed Jan 24, 2018 5:02 pm
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.

Re: Database backend component won't start

Posted: Mon Feb 05, 2018 8:36 am
by anoopjeev
Thanks for the explanation. You can close this as resolved. THANKS!!!!!

Re: Database backend component won't start

Posted: Mon Feb 05, 2018 11:02 am
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!