MySQL Offload Errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

MySQL Offload Errors

Post by mikew »

Trying to offload the database to another server and getting this error:

Here is the error that fills everything.
SQL: SQL Error [ndoutils]: Table 'nagiosql.nagios_programstatus' doesn't exist


Is there anything different with the latest version and MySQL...I have done this many times before.

Permissions on database are correct, can login remotely, user nagios on both mysql databases has all rights. Box connects but when you view individual hosts you get that error.

All settings are correct...looked at this 10 times.

ndo2db.cfg
config.in.php
settings.php

CentOS 6.3 64-bit
Nagios XI 2012R1.5b
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: MySQL Offload Errors

Post by scottwilkerson »

we had another user with almost the exact same error, we eventually figured out that they were using the same mysql username for both database on the remote mysql machine, and once they switched to use a different username for each it worked.

I believe it is because it is autologging in the user into the wrong database....

as nagiosql.nagios_programstatus is referring to the nagiosql database and the nagios_programstatus table which isn't in that database...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: MySQL Offload Errors

Post by mikew »

Thanks...that sounds about right. I will update later today.
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: MySQL Offload Errors

Post by scottwilkerson »

Thanks mike
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: MySQL Offload Errors

Post by mikew »

Scott...that was the solution...I owe you dinner....next time I see you be sure to collect.
Mike Weber

Nagios Training/Consulting
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: MySQL Offload Errors

Post by yancy »

marking issue as resolved.

adding +1 to scottwilkerson dinner count.

-Yancy
Locked