We are running xi 20142.7 with mysql offloaded to a remote server and postgresql is running locally.
The backup was created on my primary server in Admin/scheduled backups/ssh, which pushes the file to my secondary machine.
I'm using the script :
Code: Select all
/usr/local/nagiosxi/scripts/restore_ix.shCode: Select all
ERROR 2005 (HY000): Unknown MySQL server host '-u' (1)
Error restoring MySQL database 'nagios' - check the password in this script!
[root@lkendrwatsonp01 ~]#
The backup tarball has both db's so that's not an issue. After the restore I can browse to the Secondary's webgui and see: running the repair doesn't work:
Code: Select all
===============
REPAIR COMPLETE
===============
ndo2db was not running... could not stop
Starting ndo2db: done.
Running configuration check...
Stopping nagios:/etc/init.d/nagios: line 142: kill: (31028) - No such process
done.
Starting nagios: done.
[root@lkendrwatsonp01 ~]#
Code: Select all
https://support.nagios.com/forum/viewtopic.php?f=16&t=37722Code: Select all
cp /usr/local/nagios/etc/ndo2db.cfg
cp /usr/local/nagiosxi/html/config.inc.php
cp /var/www/html/nagiosql/config/settings.phpand the issue is fixed. Is there a way around this?