Hello,
Is there any documentation to migrate Nagios XI between two different platforms/Operating System?
I want migrating from CentOS 7 to Ubuntu 22.04 server. I have tried to follow this document https://support.nagios.com/kb/article/m ... r-892.html but I have many errors.
Does it possible migrating from CentOS to Ubuntu?
Thank you!!
NAGIOS XI MIGRATION from CentOS to Ubuntu
-
- Posts: 97
- Joined: Wed Aug 23, 2023 11:29 am
Re: NAGIOS XI MIGRATION from CentOS to Ubuntu
Hi @enricramos,
Migrating is possible between any of our supported distributions and architectures (which includes both CentOS 7 and Ubuntu 22). What version of XI are you migrating? What are the exact errors you are seeing? Since you are migrating between different distros, make sure you run the following on the new server:
Here is a more in-depth document on backing up and restoring Nagios XI for additional reference.
Let us know what you find.
Thank you!
Migrating is possible between any of our supported distributions and architectures (which includes both CentOS 7 and Ubuntu 22). What version of XI are you migrating? What are the exact errors you are seeing? Since you are migrating between different distros, make sure you run the following on the new server:
Code: Select all
cd /tmp/
wget https://assets.nagios.com/downloads/nagiosxi/scripts/restore_repair.sh
chmod +x restore_repair.sh
./restore_repair.sh
Let us know what you find.
Thank you!
Re: NAGIOS XI MIGRATION from CentOS to Ubuntu
hello @gwesterman,
Thanks for your reply. The Nagios XI version is: 2024R1
When the restore backup process and the /restore_repair.sh (on the new server) is finish, then I got this error when I trying to connect
************************
Database Error
Access denied for user 'nagiosxi'@'localhost' (using password: YES)
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh
***********************************
I tried to run ./repair_databases.sh script and after that I got the same result
Thank you for your help!
Thanks for your reply. The Nagios XI version is: 2024R1
When the restore backup process and the /restore_repair.sh (on the new server) is finish, then I got this error when I trying to connect
************************
Database Error
Access denied for user 'nagiosxi'@'localhost' (using password: YES)
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh
***********************************
I tried to run ./repair_databases.sh script and after that I got the same result
Thank you for your help!
Re: NAGIOS XI MIGRATION from CentOS to Ubuntu
@rfigueras
So you are getting the same error running repair_databases.sh as the restore_repair.sh? Are you making sure you are running these as root as the error message suggests?
So you are getting the same error running repair_databases.sh as the restore_repair.sh? Are you making sure you are running these as root as the error message suggests?
Re: NAGIOS XI MIGRATION from CentOS to Ubuntu
hi @sgardil
Sorry, maybe I didn't explain it well.
Running both scripts "restore_repair.sh" and "repair_databases.sh" I don't get any error and all seems good.
Then when I access to the Nagios XI web interface by visiting: http://<server_address>/nagiosxi I get the "Database Error"
Thanks!!
Sorry, maybe I didn't explain it well.
Running both scripts "restore_repair.sh" and "repair_databases.sh" I don't get any error and all seems good.
Then when I access to the Nagios XI web interface by visiting: http://<server_address>/nagiosxi I get the "Database Error"
Thanks!!
Re: NAGIOS XI MIGRATION from CentOS to Ubuntu
Hello @rfigueras,
It would seem that your issue is that the user nagiosxi is being denied access to the database. There are many different reasons this could occur. Have you verified that the passwords are correct for using your database? You can check your passwords using the script in /usr/local/nagiosxi/scripts/get_mysql_passwords.sh. You will need to log into your server as root to run this script. If the problem is not related to the passwords and the database repair script doesn't help, then it may be a more complex issue.
If you need more in-depth and personalized support, you can file a ticket at https://answerhub.nagios.com/support/s/
It would seem that your issue is that the user nagiosxi is being denied access to the database. There are many different reasons this could occur. Have you verified that the passwords are correct for using your database? You can check your passwords using the script in /usr/local/nagiosxi/scripts/get_mysql_passwords.sh. You will need to log into your server as root to run this script. If the problem is not related to the passwords and the database repair script doesn't help, then it may be a more complex issue.
If you need more in-depth and personalized support, you can file a ticket at https://answerhub.nagios.com/support/s/
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.