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.
Nagios 5.0.0 Restore backup
Re: Nagios 5.0.0 Restore backup
It looks like the issue is related to apache not having the SSL cert. In the backup you restore from, are you able to see this file present?
Also - with this being a custom folder, it may not be applied on a default Nagios backup. I think XI covers the /usr/local/nagiosxi/var folder, but not completely sure if it is recursive to cover the certs folder.Jul 20 17:19:52 gcxsp0009 httpd[29257]: SSLCertificateFile: file '/usr/local/nagiosxi/var/certs/nagiosxi.crt' does not exist or is empty
Former Nagios Employee
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios 5.0.0 Restore backup
Was the backup from pre - 5.5.0 ?