Importing & Exporting Nagios Config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ks6764
Posts: 58
Joined: Thu Aug 20, 2015 10:42 am

Importing & Exporting Nagios Config

Post by ks6764 »

I have several Redhat Linux servers each using Nagios XI 5.2.3 or 5.2.9.
These Redhat servers are going to be reimaged and once they are online again, I plan on installing Nagios XI 5.4.4 and want to be able to import what I had from the older Nagios XI versions.

I know within the Nagios XI GUI, there is a backup/restore utility, but based on my reading that tool only works when you are dealing with the same Nagios XI version.

What I want to be able to do is:
1) Backup all hosts, hostgroups, contacts, contactgroups, service checks, etc. and then import them again once Nagios XI 5.4.4 is running
2) I would also like to be able to import the GUI login accounts and passwords so that I don't have to manually input them, but I don't know if this is possible

I assume the best tool for doing what I want to do is the Export/Import tool as is explained on https://assets.nagios.com/downloads/nag ... 1495730479

Please advise
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Importing & Exporting Nagios Config

Post by dwhitfield »

There's no tool that will do everything you want. You can import the configs or you can follow https://assets.nagios.com/downloads/nag ... ios-XI.pdf. My guess is you read that and weren't happy with what it said about version #s.
ks6764
Posts: 58
Joined: Thu Aug 20, 2015 10:42 am

Re: Importing & Exporting Nagios Config

Post by ks6764 »

As I mentioned above, the backup/restore only works if for example you have Nagios XI 5.2.3 and you rebuilt your server and then were installing Nagios XI 5.2.3 back on to the server.
This is mentioned in the pdf you provided as quoted below.
NOTE 1: The version of the fresh install of Nagios XI that you are restoring to needs to match the version of Nagios XI that the backup
was taken from. For example:
Backup was created on Nagios XI 5.2.2
The server you are restoring to must have Nagios XI 5.2.2 installed on it
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Importing & Exporting Nagios Config

Post by dwhitfield »

Did you have any other questions? You seem to have a pretty good understanding of your options.
ks6764
Posts: 58
Joined: Thu Aug 20, 2015 10:42 am

Re: Importing & Exporting Nagios Config

Post by ks6764 »

Yes, actually. On the document mentioned in the url on my original post above, I noticed the following:
This document describes how to use the Nagios® XI™ configuration file import prep tool to prepare an installation for migration from
Nagios Core to Nagios XI.
This seems to me that the procedure is just for migrating from the old, non-licensed Nagios Core product to Nagios XI. I assume the procedure can also be used to move from an older Nagios XI version to a new Nagios XI version ?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Importing & Exporting Nagios Config

Post by dwhitfield »

ks6764 wrote: This seems to me that the procedure is just for migrating from the old, non-licensed Nagios Core product to Nagios XI.


This doesn't really apply to OP, but just for clarity for anyone reading this in the future: Nagios Core is not necessarily non-licensed: https://www.nagios.com/services/nagios- ... ort-plans/
ks6764 wrote:I assume the procedure can also be used to move from an older Nagios XI version to a new Nagios XI version ?
That's correct. Ultimately, XI uses Core as the backend, so the config files are "the same", with differences given to version and such.
ks6764
Posts: 58
Joined: Thu Aug 20, 2015 10:42 am

Re: Importing & Exporting Nagios Config

Post by ks6764 »

Thanks Doc, guess that answers my questions
Locked