Page 2 of 3

Re: XI Object Notes Part 2

Posted: Thu Apr 20, 2017 3:28 pm
by blariv
Hi,

I know this is late in the post but I finally upgraded my 2012 environment to the latest and took a backup. I am not trying to restore it to the new XI server but am facing this error.

[root@nagiosxi nagiosxi]# /usr/local/nagiosxi/scripts/restore_xi.sh 1492709995.tar.gz
WARNING: you are trying to restore a OS 6 backup on a OS 7 system
Compiled plugins and other binaries as well as httpd configurations
will NOT be restored.

Are you sure you want to continue? [y/N] y
TS=1492719950
Extracting backup to /store/backups/nagiosxi/1492719950-restore...
tar (child): 1492709995.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
In /root...
Unable to find files to restore in /root
[root@nagiosxi nagiosxi]#

Re: XI Object Notes Part 2

Posted: Fri Apr 21, 2017 9:23 am
by avandemore
Earlier I advised you use the Migrate from Core method as you are coming from such an old system. Are you sure you wish to continue with this path? We can fix this particular issue, but then you'd still have all that other work ahead of you. If you do wish to continue with this path, please run:

Code: Select all

# bash -x /usr/local/nagiosxi/scripts/backup_xi.sh
Then send the full output.

Re: XI Object Notes Part 2

Posted: Fri Apr 21, 2017 9:30 am
by blariv
everthing is migrated to the new system already. I just want the objects notes that are in the database.

I upgraded our original system to the latest XI version. too a backup of that then am trying to restore on the new system but getting that error.

I thought that is what was needed to get the object notes from the old now upgraded db.

Re: XI Object Notes Part 2

Posted: Fri Apr 21, 2017 2:14 pm
by ssax
Please run these commands and post the entire output:

Code: Select all

tar zxf 1492709995.tar.gz
cd 1492709995
ls -l
ls -l mysql
ls -l pgsql

Thank you

Re: XI Object Notes Part 2

Posted: Mon Apr 24, 2017 6:44 am
by blariv
attached

Re: XI Object Notes Part 2

Posted: Mon Apr 24, 2017 1:33 pm
by ssax
Please zip up and PM me your 1492709995/pgsql/nagiosxi.sql file.

Thank you

Re: XI Object Notes Part 2

Posted: Mon Apr 24, 2017 2:14 pm
by blariv
sent

Re: XI Object Notes Part 2

Posted: Mon Apr 24, 2017 3:19 pm
by ssax
Replied in PM

Re: XI Object Notes Part 2

Posted: Mon Apr 24, 2017 3:35 pm
by blariv
Hi sorry but I did not get one

Re: XI Object Notes Part 2

Posted: Mon Apr 24, 2017 4:03 pm
by ssax
Please check again.