Nagios 5.0.0 Restore backup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Maxwellb99
Posts: 96
Joined: Tue Jan 26, 2016 5:29 pm

Nagios 5.0.0 Restore backup

Post by Maxwellb99 »

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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 5.0.0 Restore backup

Post by rkennedy »

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?
Jul 20 17:19:52 gcxsp0009 httpd[29257]: SSLCertificateFile: file '/usr/local/nagiosxi/var/certs/nagiosxi.crt' does not exist or is empty
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.
Former Nagios Employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios 5.0.0 Restore backup

Post by scottwilkerson »

Was the backup from pre - 5.5.0 ?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked