This is a cache of https://support.nagios.com/kb/article/automatic-nagios-core-migration-to-nagios-xi-878.html. It is a snapshot of the page at 2025-05-12T00:02:00.604+0000.
Automatic Nagios Core Migration to Nagios XI
Home » Categories » Products » Nagios XI » Documentation » Advanced Topics

Automatic Nagios Core Migration to Nagios XI

Automatically Migrating Nagios Core to Nagios XI

 

Introduction

As of Nagios XI 5.8, users now have the ability to automatically migrate their Nagios Core data to Nagios XI. Although Nagios Core provides capable monitoring features, Nagios XI provides many more easy-to-use features that allow you to get a full and robust picture of your monitorable systems. Some of these extended features are:

  • Web-Based Configuration that provide advanced configuration features
  • Monitoring Wizards that make it easy to monitor new devices, applications, and services
  • Customizable Dashboards that allow for per-user customization
  • Integrated Performance graphs that provide trending and capacity planning information
  • Advanced Reports that provide data insight and exporting capabilities
  • Data Visualizations that enable powerful analysis of patterns and problems
  • More information about Nagios XI

Prerequisites

  • Python must be installed on any Nagios Core systems you wish to migrate. Install python if necessary.
    Example:
    dnf install python3
  • If migrating Nagios Core from an EL-8 system to Nagios XI hosted on EL-7, a python file called ‘python’ must exist in /usr/bin/ on the Nagios Core system. One method of accomplishing this is to copy the EL-8 version of python (python3, python2, etc…).
    Example:
    ln -s /usr/bin/python3 /usr/bin/python

Core Migration

After installing or upgrading your Nagios XI instance, you can automatically migrate your Nagios Core instance after entering some authentication information about your Nagios Core server.

To automatically migrate your core instance:

  1. Navigate to Admin > Migrate Server.

  2. Expand the Advanced Settings section and enter the following information:
    • Server Address - The IP address or Hostname of your Nagios Core instance.
    • Username - The username to access the Nagios Core instance. NOTE: This username must either be root or have the ability to sudo into root.
    • Password - The password of the root user or the user able to sudo into root.
    • Overwrite Configs - Choose whether to overwrite duplicate objects with Nagios Core objects. Make sure to UNCHECK this box if you do not want to lose your current config data on your target XI server.
    • Nagios Config File - If the nagios.cfg file is not in the default location on your Nagios Core server (generally /usr/local/nagios/etc/nagios.cfg), then enter the location of the config file.
  3. Click the Migrate button.
  4. If the core migration fails, the error that occurred will be displayed.
  5. If the core migration is successful, you will see the success screen with all green checkmarks. You can also click on the 'critical host/services' link to see any migrated hosts or services that are in a critical status. 

 

Important Notes

  • The current version of the Nagios Core migration automation feature will move PLUGINS and OBJECT CONFIGS only. We will be adding more features/functionality as we build out future versions. Currently, performance data is not migrated.
  • Migration replaces some of the nagios.cfg directives, but not all. Specifically, it changes (uses Core's value for) all of the directives in the "#UNMODIFIED" section of XI's .cfg that aren't file/directory paths.
  • A successful migration always finishes by applying configuration and creating a configuration snapshot. Therefore, the migration can always be reverted by restoring the old configuration snapshot.
  • Migration will only overwrite existing configuration if you have checked the "Overwrite duplicates..." in the GUI interface. Otherwise, the migration will import any object configurations that do not currently exist in the CCM.
  • Plugin import may not work properly under the following conditions:

    • If the plugin has dependencies, the import process does not automatically install those dependencies.
    • If the plugin is compiled on a different distribution/using nonstandard dependencies, it will need to be re-compiled on the current system.
    • If the plugin was written for a distribution with different default scripting environments (for shell, python, perl, etc), the other scripting environment may need to be installed, or the plugin may need to be changed to work with the new scripting environment.

Troubleshooting

Please read through the Important Notes section above before continuing.

If you run into an error or circumstance that is not clearly defined or the migration process seems to be stuck, please see the following logs and files for potential issues:

Directory: /usr/local/nagiosxi/scripts/migrate/jobs/<random#idofjob>

Files to review:

<random#idofjob>.yml
ansible.cfg
errors.txt
hosts
output.json

If reviewing the information in these files does not provide an answer to your issue, please include these migration files, as well as a system profile, in your correspondence with Nagios Support. Example:

tar -czf /tmp/migrationlogs.tgz /usr/local/nagiosxi/scripts/migrate/jobs/<random#idofjob>

More Information

Manually Migrating from Nagios Core



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

4.5 (2)
Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Database Storage Engine and High CPU usage in Nagios XI
Viewed 5384 times since Thu, Mar 4, 2021
Nagios XI - How To Write Custom Components
Viewed 8217 times since Thu, Jan 28, 2016
Nagios XI - Customizing The Landing Page
Viewed 8305 times since Wed, Jan 27, 2016
Nagios XI - Offloading MySQL to Remote Server
Viewed 8580 times since Thu, Jan 28, 2016
Nagios XI - Exporting the Config Database
Viewed 9650 times since Wed, Jan 27, 2016
Nagios XI Wizards Achitecture
Viewed 4422 times since Thu, Jan 29, 2015
How To Download Files From The Nagios Exchange Using WGET
Viewed 14301 times since Tue, Aug 2, 2016
Nagios XI - Securing Your Nagios Server - NWC13
Viewed 6421 times since Thu, Feb 4, 2016
Managing Contact Templates
Viewed 4609 times since Mon, Jun 28, 2021
Nagios XI - Upgrading To PHP 7
Viewed 18816 times since Tue, Oct 22, 2019