I'm trying to build a redundant Nagios XI server that we can use as a manual failover to our production server. Once it's configured, I plan on shutting down Nagios XI on it and just have MySQL running as a slave server. In the event of our primary server failing, I would re-IP the standby box to the primary box's IP and bring it on line to resume monitoring.
Here are the steps I took to get this far:
Followed the instructions from the backup / restore docs: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
After doing this, I've run into a snag. I've got the new box up and running and have installed Nagios XI, restored the new box from a recent backup of the original server, but am unable to log into the new box. I'm getting the message that the databases are corrupt. I've run the database repair script ( /usr/local/nagiosxi/scripts/repair_databases.sh ) three times. No errors are being reported when I run the update. Still not able to log into the new server.
Please help.
Redundant Nagios Server Setup Fail
Re: Redundant Nagios Server Setup Fail
UPDATE: Looks like the nagios and nagiosql users were not in the MySQL database. With that fixed, I've got another problem:
Shouldn't the restore have the nagios/nagiosql and ldap info?
Code: Select all
[Thu Nov 30 10:32:08 2017] [error] [client XXX.XXX.XXX.XXX] PHP Warning: ldap_bind(): Unable to bind to server: Invalid credentials in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/adLDAP.php on line 714, referer: http://XXX.XXX.XXX.XXX/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1Re: Redundant Nagios Server Setup Fail
After a reboot or two, this is now working.
Re: Redundant Nagios Server Setup Fail
Here is a another quick question - a little off topic, but what is the BEST way of having Nagios disabled on the new machine and having just the MySQL database running?
I've done this, but it appears that Nagios is still running a bunch of checks:
what am I missing?
I've done this, but it appears that Nagios is still running a bunch of checks:
Code: Select all
service npcd stop
service nagios stop
service ndo2db stop
service mysqld restart
rm -rf /usr/local/nagios/var/rw/nagios.cmd
rm -rf /usr/local/nagios/var/nagios.lock
rm -rf /usr/local/nagios/var/ndo.sock
rm -rf /usr/local/nagios/var/ndo2db.lock
rm -rf /usr/local/nagiosxi/var/reconfigure_nagios.lock
rm -rf /var/lib/mrtg/mrtg_l
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
pkill -9 -u nagios
service crond restart-
kyang
Re: Redundant Nagios Server Setup Fail
Is your first question resolved?
Usually, we try to keep questions specific to the question of the thread. In case anyone looks at this and gets confused.
Have you tried disabling active/passive checks from the UI? XI Home --> under monitoring process --> click process info.
You can disable the checks from there.
Otherwise, are we okay to lock up this thread?
Usually, we try to keep questions specific to the question of the thread. In case anyone looks at this and gets confused.
Have you tried disabling active/passive checks from the UI? XI Home --> under monitoring process --> click process info.
You can disable the checks from there.
Otherwise, are we okay to lock up this thread?
Re: Redundant Nagios Server Setup Fail
Feel free to close this thread. I'll open another topic for the other question.