New_Version_restore.sh not working.
Posted: Mon Nov 16, 2015 5:57 pm
Hello.
The problem is in the upgrade from other Nagiox XI 2014 to the new versión.
When I perform the command and is in the process always ends showing an error , as I can solve the problem and restore my old settings . Thanks
[root@NagiosXI ~]# /usr/local/nagiosxi/scripts/restore_xi.sh /root/1447687605.tar.gz
TS=1447714473
Extracting backup to /store/backups/nagiosxi/1447714473-restore...
In /store/backups/nagiosxi/1447714473-restore/1447687605...
Backup files look okay. Preparing to restore...
Shutting down services...
Stopping nagios:.. done.
Stopping ndo2db: done.
NPCD Stopped.
Restoring directories to /...
Restoring Nagios Core...
Restoring Nagios XI...
Restoring NagiosQL...
Restoring NagiosQL backups...
Restoring NRDP backups...
Restoring MRTG...
Restoring MySQL databases...
Restoring PostgresQL databases...
psql : could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket " /tmp/.s.PGSQL.5432 "?
Error restoring PostgresQL database 'nagiosxi' !
[root@NagiosXI ~]#
The problem is in the upgrade from other Nagiox XI 2014 to the new versión.
When I perform the command and is in the process always ends showing an error , as I can solve the problem and restore my old settings . Thanks
[root@NagiosXI ~]# /usr/local/nagiosxi/scripts/restore_xi.sh /root/1447687605.tar.gz
TS=1447714473
Extracting backup to /store/backups/nagiosxi/1447714473-restore...
In /store/backups/nagiosxi/1447714473-restore/1447687605...
Backup files look okay. Preparing to restore...
Shutting down services...
Stopping nagios:.. done.
Stopping ndo2db: done.
NPCD Stopped.
Restoring directories to /...
Restoring Nagios Core...
Restoring Nagios XI...
Restoring NagiosQL...
Restoring NagiosQL backups...
Restoring NRDP backups...
Restoring MRTG...
Restoring MySQL databases...
Restoring PostgresQL databases...
psql : could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket " /tmp/.s.PGSQL.5432 "?
Error restoring PostgresQL database 'nagiosxi' !
[root@NagiosXI ~]#