can not restore nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
erwinwisnu27
Posts: 1
Joined: Wed Mar 30, 2016 7:58 pm

can not restore nagios XI

Post by erwinwisnu27 »

Dear my fellow expert nagios,

Need your advice, I have 2 Nagios servers backup and primary. so I want to restore data from my Nagios primary server to Nagios backup server. However I have some issue after restoring nagios, error occured after using script for restore. It says /usr/local/nagiosxi/scripts/restore_xi.sh: line 157: mysql/nagiosql.sql: No such file or directory
Error restoring MySQL database 'nagiosql' - check the password in this script!


Is there anyone facing similar issue like me when trying to restore nagios

Code: Select all

[root@nocmainserver scripts]# /usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1458759401.tar.gz
TS=1459412068
Extracting backup to /store/backups/nagiosxi/1459412068-restore...
In /store/backups/nagiosxi/1459412068-restore/1458759401...
Backup files look okay.  Preparing to restore...
Shutting down services...
Stopping nagios: .done.
Stopping ndo2db: .done.
NPCD was not running.
Restoring directories to /...
Restoring Nagios Core...
Restoring Nagios XI...
Restoring NagiosQL...
Restoring NagiosQL backups...
Restoring MRTG...
Restoring MySQL databases...
/usr/local/nagiosxi/scripts/restore_xi.sh: line 157: mysql/nagiosql.sql: No such file or directory
Error restoring MySQL database 'nagiosql' - check the password in this script!
[root@nocmainserver scripts]#
Last edited by tmcdonald on Thu Mar 31, 2016 9:38 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: can not restore nagios XI

Post by tmcdonald »

What versions are you restoring from, and to?
Former Nagios employee
Locked