We are trying to restore Nagios XI 5.2.2 version:
- Source system is 32 bit, Cent OS 5
- Destination system is 64 bit Cent OX 7
- Installed Nagios XI 5.2.2 on destination VM and then run the restoration script. Haven't installed anything except WGET on the new VM destination. But restore script is complaining about PostgresQL.
- Screen shot logs as below. What to do? Kindly assist.
Log:
Code: Select all
[root@newnagiosxi nagiosxi]# /usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1505986286.tar.gz
WARNING: you are trying to restore a i386 backup on a x86_64 system
Compiled plugins and other binaries will NOT be restored.
Are you sure you want to continue? [y/N] y
WARNING: you are trying to restore a OS 5 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=1506241895
Extracting backup to /store/backups/nagiosxi/1506241895-restore...
In /store/backups/nagiosxi/1506241895-restore/1505986286...
Backup files look okay. Preparing to restore...
Shutting down services...
Restoring directories to /...
Restoring Nagios Core...
Restoring Nagios XI...
Restoring NagiosQL...
Restoring NagiosQL backups...
Restoring NRDP backups...
Restoring MRTG...
Restoring Nagvis backups...
chown: cannot access â/usr/local/nagvisâ: No such file or directory
Restoring MySQL databases...
Redirecting to /bin/systemctl start postgresql.service
Job for postgresql.service failed because the control process exited with error code. See "systemctl status postgresql.service" and "journalctl -xe" for details.
Restoring Nagios XI PostgresQL database...
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Error restoring PostgresQL database 'nagiosxi' !
You have new mail in /var/spool/mail/root