Restore from RHEL 5 to RHEL 7: Broken Database Backend
Posted: Tue Jul 21, 2015 10:43 am
RHEL 7.1
64-bit
Manual install
1. After running ./fullinstall on a fresh RHEL7.1 system everything seemed to be up and running correctly and the installation completed without issue.
2. When I run ./restore_xi for a backup created on RHEL 5 (same Nagios XI version) it correctly loads all the configs but the database backend fails to start. The message on the XI System Status page says "ndo2db is not running but subsystem locked". All other services seem be running without issue.
3. After following the restore doc https://assets.nagios.com/downloads/nag ... ios-XI.pdf and executing these commands
cd /tmp/nagiosxi
rm -f installed.subcomponents
./A-subcomponents
I receive a 403 Forbidden error on the XI login page. I receive the same error after running ./build-perms-bin as well.
I'm assuming this may have something to do with the switch to mariadb in RHEL but that is just a guess. I'll restore the system to the state at point 2 and await help!
Output from the end of the restore script:
Restarting database servers...
./restore_xi.sh: line 187: /etc/init.d/mysqld: No such file or directory
./restore_xi.sh: line 188: /etc/init.d/postgresql: No such file or directory
Restoring logrotate config files...
Restoring Apache config files...
./restore_xi.sh: line 216: /etc/init.d/httpd: No such file or directory
NPCD started.
Starting ndo2db (via systemctl): [ OK ]
Starting nagios (via systemctl): [ OK ]
===============
RESTORE COMPLETE
===============
64-bit
Manual install
1. After running ./fullinstall on a fresh RHEL7.1 system everything seemed to be up and running correctly and the installation completed without issue.
2. When I run ./restore_xi for a backup created on RHEL 5 (same Nagios XI version) it correctly loads all the configs but the database backend fails to start. The message on the XI System Status page says "ndo2db is not running but subsystem locked". All other services seem be running without issue.
3. After following the restore doc https://assets.nagios.com/downloads/nag ... ios-XI.pdf and executing these commands
cd /tmp/nagiosxi
rm -f installed.subcomponents
./A-subcomponents
I receive a 403 Forbidden error on the XI login page. I receive the same error after running ./build-perms-bin as well.
I'm assuming this may have something to do with the switch to mariadb in RHEL but that is just a guess. I'll restore the system to the state at point 2 and await help!
Output from the end of the restore script:
Restarting database servers...
./restore_xi.sh: line 187: /etc/init.d/mysqld: No such file or directory
./restore_xi.sh: line 188: /etc/init.d/postgresql: No such file or directory
Restoring logrotate config files...
Restoring Apache config files...
./restore_xi.sh: line 216: /etc/init.d/httpd: No such file or directory
NPCD started.
Starting ndo2db (via systemctl): [ OK ]
Starting nagios (via systemctl): [ OK ]
===============
RESTORE COMPLETE
===============