NAGIOS XI MIGRATION from CentOS to Ubuntu

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
enricramos
Posts: 1
Joined: Thu Feb 07, 2019 11:05 am

NAGIOS XI MIGRATION from CentOS to Ubuntu

Post by enricramos »

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!!
gwesterman
Posts: 97
Joined: Wed Aug 23, 2023 11:29 am

Re: NAGIOS XI MIGRATION from CentOS to Ubuntu

Post by gwesterman »

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:

Code: Select all

cd /tmp/
wget https://assets.nagios.com/downloads/nagiosxi/scripts/restore_repair.sh
chmod +x restore_repair.sh
./restore_repair.sh
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!
rfigueras
Posts: 2
Joined: Wed Jan 17, 2024 6:51 am

Re: NAGIOS XI MIGRATION from CentOS to Ubuntu

Post by rfigueras »

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!
sgardil
Posts: 143
Joined: Wed Aug 09, 2023 9:58 am

Re: NAGIOS XI MIGRATION from CentOS to Ubuntu

Post by sgardil »

@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?
rfigueras
Posts: 2
Joined: Wed Jan 17, 2024 6:51 am

Re: NAGIOS XI MIGRATION from CentOS to Ubuntu

Post by rfigueras »

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!!
bbahn
Posts: 112
Joined: Thu Jan 12, 2023 5:42 pm

Re: NAGIOS XI MIGRATION from CentOS to Ubuntu

Post by bbahn »

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/
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.
Post Reply