Database Backend Is Not Running

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Database Backend Is Not Running

Post by mcwhorts »

So I just upgraded Nagios XI to 2014R2.7 and now it says that the database backend isn't running. The VM was rebooted. I've tried manually starting the database and it still says the database backend isn't running. Any ideas?
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Database Backend Is Not Running

Post by jolson »

It looks like mysql is running fine, but ndo2db might be stopped. Please try the following:

Code: Select all

service ndomod start
What is the output of that command?
I've tried manually starting the database and it still says the database backend isn't running.
Which database backend is not running, and how did you try to start it?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Database Backend Is Not Running

Post by mcwhorts »

service ndomod start
ndomod: unrecognized service

To restart the database I tried running
service mysqld restart
and
service ndo2db restart

returned
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
and
ndo2db was not running... could not stop
Starting ndo2db: done.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Database Backend Is Not Running

Post by tgriep »

service ndo2db restart
is the correct command.
Does the system recognize that the Database Backend is now running?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Database Backend Is Not Running

Post by mcwhorts »

No it still shows that it's not running from the GUI.
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Database Backend Is Not Running

Post by mcwhorts »

I am seeing this in the system profile
"ndo2db is not running but subsystem locked"
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Database Backend Is Not Running

Post by tgriep »

Try this to clear the lock file that could be left over during the upgrade.

Code: Select all

service ndo2db stop
rm /usr/local/nagios/var/ndo2db.lock
service ndo2db start
service nagios restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Database Backend Is Not Running

Post by mcwhorts »

It is still showing that the database backend isn't running :(
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Database Backend Is Not Running

Post by jolson »

Sorry, I posted the incorrect command.

It's also worth noting that there could be a hanging .sock file - check the following location for it:

Code: Select all

ls /usr/local/nagios/var/ndo.sock
If the socket remains and the program is not running, feel free to delete the socket and restart:

Code: Select all

rm /usr/local/nagios/var/ndo.sock
service ndo2db restart
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Database Backend Is Not Running

Post by mcwhorts »

Unfortunately, nothing has changed. It still says DB backend isn't running.
Locked