We have two NagiosXI servers - primary and backup. One ends with 051 and another 052. I prefixed the config files uploaded with 051 and 052 respectively. We just migrated our MySQL server from running on each server to the enterprise MySQL server that is accessed by both servers. It feels like the GUI is not picking up the correct status from the data base.
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Wed Dec 28, 2016 4:05 pm, edited 3 times in total.
Reason:code blocks FTW
Generally this error is mentioned when something isn't offloading / connecting properly. Did you follow this document to do so? https://assets.nagios.com/downloads/nag ... Server.pdf - it looks like you specified 3382 correctly in the dbserver variables so that should be working.
Looking at both ndo2db.cfg files - it appears you have both 051 and 052 using the same exact database. This will not function as expected due to the moving parts in Nagios. If you're looking for a HA setup, I would look at the Linbit solution - https://www.nagios.com/news/2015/10/pre ... nagios-xi/
The reason why we saw this same issue occur last time was because you had the wrong server set in Admin > System Settings > Program URL (it was pointing to the other server where nagios is not running), you are likely experiencing the same issue, please validate the Program URL and let us know the results.
I don't remember if you have a load balancer in front of the web servers, do you?
Oh, I remember now, you need to disable the cron jobs as well on the inactive machine, I stated this in the remote that you would need to add the disabling of the cron jobs to your HA scripts.
Basically /etc/cron.d/nagiosxi should only be enabled on the active server, please make sure they are disabled on the inactive server.
Yes, we updated our failover script to disable the cron jobs on a server that is not running Nagios. I checked and we are good. Something else is going on.
Let's move this into a ticket, please email [email protected] with a descriptive subject and detailed body and please include a link back to this thread so that we can get a remote session setup.