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
Nagios XI text import
Re: Nagios XI text import
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.
Code: Select all
/usr/local/nagios/etc/staticFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
kendallchenoweth
- Posts: 195
- Joined: Fri Sep 13, 2013 10:43 am
Re: Nagios XI text import
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?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios XI text import
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.
-
kendallchenoweth
- Posts: 195
- Joined: Fri Sep 13, 2013 10:43 am
Re: Nagios XI text import
Thanks for your help.