Page 1 of 1
Initial configuration issues
Posted: Fri Apr 27, 2012 11:12 pm
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?

Re: Initial configuration issues
Posted: Sun Apr 29, 2012 10:20 am
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".
Re: Initial configuration issues
Posted: Mon Apr 30, 2012 9:36 am
by scottwilkerson
Thanks for documenting your experience for others.
Re: Initial configuration issues
Posted: Mon Apr 30, 2012 9:37 am
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.