Clarification on Migrating Nagios XI Databases Between Servers
Posted: Tue Dec 10, 2024 10:04 am
Hello,
I’m planning to migrate Nagios XI from an old server to a new one. Since I want to avoid carrying over errors and inconsistencies that have accumulated over the years, I aim to start fresh and migrate only the necessary components.
I have already completed much of the preparatory work but encountered an issue regarding the database migration. I would appreciate your guidance.
I assume there should be no issue migrating the nagios and nagiosql databases. I plan to use the following commands:
Please confirm if this approach is correct.
For the nagiosxi database, I am uncertain. For example, I noticed discrepancies in the number of rows/options in the xi_options table when comparing the current/old database to a fresh installation. Since I am migrating between different versions of Nagios XI, I am unsure of the implications.
Can I migrate the nagiosxi database using a similar command (after truncating the corresponding tables on the new server)?
Alternatively, would it be better to avoid migrating this database entirely and instead manually recreate users, dashboards, and other configurations on the new server? Perhaps it would make sense to migrate only selected tables?
Environment Details:
Old Server: RHEL 7, Nagios XI 5.11.2, MariaDB 5.5.68.
New Server: RHEL 9, Nagios XI 2024R1.3.1 (RPM-based installation), MySQL Server 8.0.36.
If you have any specific recommendations or insights for this migration, especially regarding potential pitfalls, it would be very helpful.
Thank you for your assistance.
I’m planning to migrate Nagios XI from an old server to a new one. Since I want to avoid carrying over errors and inconsistencies that have accumulated over the years, I aim to start fresh and migrate only the necessary components.
I have already completed much of the preparatory work but encountered an issue regarding the database migration. I would appreciate your guidance.
I assume there should be no issue migrating the nagios and nagiosql databases. I plan to use the following commands:
Code: Select all
mysqldump -uroot -p --no-create-info --complete-insert --ignore-table=nagios.nagios_conninfo nagios > nagios.sql
mysqldump -uroot -p --no-create-info --complete-insert nagiosql > nagiosql.sqlFor the nagiosxi database, I am uncertain. For example, I noticed discrepancies in the number of rows/options in the xi_options table when comparing the current/old database to a fresh installation. Since I am migrating between different versions of Nagios XI, I am unsure of the implications.
Can I migrate the nagiosxi database using a similar command (after truncating the corresponding tables on the new server)?
Code: Select all
mysqldump -uroot -p --no-create-info --complete-insert --ignore-table=nagiosxi.xi_incidents nagiosxi > nagiosxi.sqlEnvironment Details:
Old Server: RHEL 7, Nagios XI 5.11.2, MariaDB 5.5.68.
New Server: RHEL 9, Nagios XI 2024R1.3.1 (RPM-based installation), MySQL Server 8.0.36.
If you have any specific recommendations or insights for this migration, especially regarding potential pitfalls, it would be very helpful.
Thank you for your assistance.