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.sql
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)?
Code: Select all
mysqldump -uroot -p --no-create-info --complete-insert --ignore-table=nagiosxi.xi_incidents nagiosxi > nagiosxi.sql
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.