HI Team,
We are trying to restore Nagios XI 2024R1.1.2 from rhel7 to rhel9 Platform . However it looks like its failing to restore and i noticed post restore most of the files are missing ( though they were present earlier )
[root@BACKUP]# /usr/local/nagiosxi/scripts/restore_xi.sh 1752133836.tar.gz
WARNING: you are trying to restore a el7 backup on a el9 system
Compiled plugins and other binaries as well as httpd configurations
will NOT be restored.
You will need to re-download the Nagios XI tarball, and re-install
the subcomponents for this system. More info here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Are you sure you want to continue? [y/N] y
TS=1752134690
Extracting backup to /store/backups/nagiosxi/1752134690-restore...
In /store/backups/nagiosxi/1752134690-restore/xi-backup-1752133836-bx8nTKDIvCra1Cy0WCFd...
Backup files look okay. Preparing to restore...
Shutting down services...
Restoring directories to /...
Restoring Nagios Core...
tar: usr/local/nagios: Cannot open: File exists
tar: Exiting with failure status due to previous errors
tar: usr/local/nagios/libexec/*: Not found in archive
tar: Exiting with failure status due to previous errors
Restoring Nagios XI...
Restoring NRDP backups...
Restoring MRTG...
Restoring SNMP configuration files...
Restoring SNMP MIBs...
Restoring Nagvis backups...
Restoring nagios home dir...
Syncronizing MySQL root password...
MySQL root passwords unsyncronized...
Current MySQL root password worked
Restoring MySQL databases...
Syncronizing database passwords for MySQL user ndoutils...
Database passwords for MySQL user ndoutils unsyncronized...
Current password correct
sed: can't read /usr/local/nagios/etc/ndo.cfg: No such file or directory
Syncronizing database passwords for MySQL user nagiosql...
Database passwords for MySQL user nagiosql unsyncronized...
Current password correct
Restoring Nagios XI MySQL database...
Syncronizing database passwords for MySQL user nagiosxi...
Database passwords for MySQL user nagiosxi unsyncronized...
Current password correct
Syncronizing database passwords for MySQL user dbmaint_nagiosxi...
Database passwords for MySQL user dbmaint_nagiosxi unsyncronized...
Current password correct
Restarting database servers...
Restoring Apache cronjobs...
Restoring logrotate config files...
Skipping Apache config files restoration
Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xeu nagios.service" for details.
===============
RESTORE COMPLETE
===============
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Nagios Core 4.4.13
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Copyright (c) 1999-2009 Ethan Galstad
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Last Modified: 2023-06-01
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: License: GPL
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Website: https://www.nagios.org
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Reading configuration data...
Jul 10 04:09:33 dennagxip1.jeppesen.com nagios[6967]: Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
Jul 10 04:09:33 dennagxip1.jeppesen.com systemd[1]: nagios.service: Control process exited, code=exited, status=254/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
There is no /etc folder itself :
ll /usr/local/nagios
total 16
drwxr-xr-x 2 nagios nagios 154 Apr 4 10:31 bin
drwxrwsr-x 2 nagios nagios 8192 Jun 2 03:00 libexec
drwxrwxr-x 2 nagios nagios 4096 Apr 4 10:28 sbin
Nagios XI - Restore failing / corrupting folders /usr/local/nagios
-
veeravamsi
- Posts: 139
- Joined: Wed Jan 23, 2019 3:35 am
Re: Nagios XI - Restore failing / corrupting folders /usr/local/nagios
Hi @veeravamsi,
Thanks for reaching out. This free forum is meant for general help with the Nagios products. Your best option to get help with this issue is to open a support ticket here: https://support.nagios.com/, so our support team can help you.
Thanks for reaching out. This free forum is meant for general help with the Nagios products. Your best option to get help with this issue is to open a support ticket here: https://support.nagios.com/, so our support team can help you.
Please let us know if you have any other questions or concerns.
-Laura
-Laura