Page 1 of 1
Nagios XI text import
Posted: Thu Oct 03, 2013 10:47 am
by kendallchenoweth
Within Nagios XI, I would like to be able to create new services, contacts, devices and export their configuration to a text file and import those text files to production (using the text file import feature).
I would also like to modify services, contacts and devices and export those changes to a text file and import those changes incrementally to production without having to use the GUI.
Is this possible using Nagios XI? Thanks!
-Kendall Chenoweth
Re: Nagios XI text import
Posted: Thu Oct 03, 2013 10:59 am
by abrist
In a way. Any static configs that you wish to manage from the cli by hand can be copied to:
These configs will still be applied when you run "apply configuration" from the web ui. They will not appear in the CCM nor get saved to the database. Do not "import" them back into the CCM though, as the will get written back to the DB.
Re: Nagios XI text import
Posted: Thu Oct 03, 2013 11:34 am
by kendallchenoweth
If they don't get applied to the database, then they aren't included in the automatic configuration rollback. I'd prefer some way to use the database as the primary configration, if possible. Do you (or anybody) have any recommendations to accomplish this?
Re: Nagios XI text import
Posted: Thu Oct 03, 2013 11:49 am
by slansing
Well, if you are using the database for configuration then the files are no longer static and flat. You could make changes to the config files, and then import them into Nagios XI after you hand change them. After that point they would be in the database, and the next time you want to manually edit them from the command line or via a scripted solution, you would have to remove them from the CCM and re-import them. Of course if you are just incrementally adding new configurations you can just keep importing them into production. So you could get close to what you are looking for in that respect.
Re: Nagios XI text import
Posted: Mon Nov 11, 2013 5:07 pm
by kendallchenoweth
Thanks for your help.