Offloaded MySQL db - table not found

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Offloaded MySQL db - table not found

Post by lmiltchev »

Sounds good. Let us know if you have any issues with the new VM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
prmmover
Posts: 7
Joined: Wed Jun 13, 2012 1:14 pm

Re: Offloaded MySQL db - table not found

Post by prmmover »

Ok, so after many more hours of fiddling, I figured out the problem, but I'm not sure I like the answer.

You apparently cannot change the username or password of the db user for the ndoutils on the remote DB side. For the nagios database, you need to keep the same ndoutils user/password credentials, it's not honoring the use of a different username/password combination on the remote server.

I tested with a new VM and clean databases, got the same error after I moved them to the remote db server, using a new username of "nagiosadm". Logged in, same problem.

Then I added an "ndoutils" user with default password into the remote database, restarted everything, and bingo, everything is working as it should, with the default local mysqld stopped and chkconfig'd off.

So, I would suggest that someone test this out on the nagios development end, and if this turns out to be the case, change the library document to reflect this.

-Gary
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Offloaded MySQL db - table not found

Post by scottwilkerson »

Sure you can, you need to modify the /usr/local/nagios/etc/ndo2db.cfg and restart the ndo2db service

Code: Select all

service ndo2db restart
service nagios restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked