Page 1 of 1

Importing & Exporting Nagios Config

Posted: Thu May 25, 2017 4:35 pm
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

Re: Importing & Exporting Nagios Config

Posted: Thu May 25, 2017 4:49 pm
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.

Re: Importing & Exporting Nagios Config

Posted: Thu May 25, 2017 5:08 pm
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

Re: Importing & Exporting Nagios Config

Posted: Fri May 26, 2017 9:06 am
by dwhitfield
Did you have any other questions? You seem to have a pretty good understanding of your options.

Re: Importing & Exporting Nagios Config

Posted: Fri May 26, 2017 9:25 am
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 ?

Re: Importing & Exporting Nagios Config

Posted: Fri May 26, 2017 9:31 am
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.

Re: Importing & Exporting Nagios Config

Posted: Fri May 26, 2017 11:02 am
by ks6764
Thanks Doc, guess that answers my questions