Offloaded MySQL db - table not found
Re: Offloaded MySQL db - table not found
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!
Re: Offloaded MySQL db - table not found
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
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
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