Initial configuration issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Initial configuration issues

Post by GaWd »

Hello guys!

I've been using core for a few years now, and I've tired of the manual configs and troubleshooting, so I'm trying to see about implementing XI in my production environment.

I imported all of my core configs, and something went wrong. I get config warning after config warning. I resolve the warning, and another one pops up. I resolve one or two more conflicts, and then strangely enough, the same config warning repeat themselves.

I'd like to flash this installation back to one of the original snapshots, but I can't find any built-in mechanism to import the tar file.

Help? :)
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Re: Initial configuration issues

Post by GaWd »

I started managing my mistakes by snapshot :)

I used the 'Migrating from Core to XI' Doc: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

But there is something missing. It does not instruct you in the next step: Applying the individual configurations to the system.

Just so it's documented in the forums:

1- copy core config files to a folder in /usr/local/nagios/etc that you intend to import.
2- Import using import tool, following (roughly) the described order on the import page.
3- Do not go to "write configuration files"-this was what broke my earlier attempts.
4- Look through your hosts, services, contacts, etc. and "apply configuration".
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Initial configuration issues

Post by scottwilkerson »

Thanks for documenting your experience for others.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Initial configuration issues

Post by mguthrie »

3- Do not go to "write configuration files"-this was what broke my earlier attempts.
Actually for an import process this is the page you want to use to write out and verify your configuration. For an import, you'll want to import all of your object configurations, use the Write Config Tool to write the files from the DB to config files, and then verify. If the verification fails, you'll need to find the config error and fix it in the Core Config Manager, and then repeat the Write config tool until it verifies.

4- Look through your hosts, services, contacts, etc. and "apply configuration".
For debugging an import, you should know that if you use the "Apply Configuration" button, Nagios XI will roll back the physical config files to the last known good configuration if you try to apply a bad configuration. This is done in order to keep the monitoring engine running at all times. I recommend waiting to use Apply Configuration until after the import has been completed successfully.
Locked