Nagios 5.0.0 Restore backup
Posted: Fri Jul 20, 2018 4:34 pm
Hi guys,
Has anyone else had problems restoring Nagios from backup?
Here's the start of the restore
Backup files look okay. Preparing to restore...
Shutting down services...
Restoring directories to /...
...
Restoring Apache config files...
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/nagiosmobile.conf’: No such file or directory
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/nagvis.conf’: No such file or directory
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/nrdp.conf’: No such file or directory
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/ssl.conf’: No such file or directory
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
systemctl status httpd.service -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-07-20 17:19:52 EDT; 9min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 29260 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 29257 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 29257 (code=exited, status=1/FAILURE)
Jul 20 17:19:52 gcxsp0009 systemd[1]: Starting The Apache HTTP Server...
Jul 20 17:19:52 gcxsp0009 httpd[29257]: AH00526: Syntax error on line 100 of /etc/httpd/conf.d/ssl.conf:
Jul 20 17:19:52 gcxsp0009 httpd[29257]: SSLCertificateFile: file '/usr/local/nagiosxi/var/certs/nagiosxi.crt' does not exist or is empty
Jul 20 17:19:52 gcxsp0009 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 20 17:19:52 gcxsp0009 kill[29260]: kill: cannot find process ""
Jul 20 17:19:52 gcxsp0009 systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 20 17:19:52 gcxsp0009 systemd[1]: Failed to start The Apache HTTP Server.
Jul 20 17:19:52 gcxsp0009 systemd[1]: Unit httpd.service entered failed state.
Jul 20 17:19:52 gcxsp0009 systemd[1]: httpd.service failed.
Has anyone else had problems restoring Nagios from backup?
Here's the start of the restore
Backup files look okay. Preparing to restore...
Shutting down services...
Restoring directories to /...
...
Restoring Apache config files...
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/nagiosmobile.conf’: No such file or directory
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/nagvis.conf’: No such file or directory
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/nrdp.conf’: No such file or directory
cp: cannot stat ‘/store/backups/nagiosxi/1532120961-restore/nagiosxi.1530865801/httpd/ssl.conf’: No such file or directory
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
systemctl status httpd.service -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-07-20 17:19:52 EDT; 9min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 29260 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 29257 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 29257 (code=exited, status=1/FAILURE)
Jul 20 17:19:52 gcxsp0009 systemd[1]: Starting The Apache HTTP Server...
Jul 20 17:19:52 gcxsp0009 httpd[29257]: AH00526: Syntax error on line 100 of /etc/httpd/conf.d/ssl.conf:
Jul 20 17:19:52 gcxsp0009 httpd[29257]: SSLCertificateFile: file '/usr/local/nagiosxi/var/certs/nagiosxi.crt' does not exist or is empty
Jul 20 17:19:52 gcxsp0009 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 20 17:19:52 gcxsp0009 kill[29260]: kill: cannot find process ""
Jul 20 17:19:52 gcxsp0009 systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 20 17:19:52 gcxsp0009 systemd[1]: Failed to start The Apache HTTP Server.
Jul 20 17:19:52 gcxsp0009 systemd[1]: Unit httpd.service entered failed state.
Jul 20 17:19:52 gcxsp0009 systemd[1]: httpd.service failed.