Creating manual cfg files issue...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Discla1m3r
Posts: 11
Joined: Tue Jan 21, 2014 11:55 am

Creating manual cfg files issue...

Post by Discla1m3r »

I have a script that when runs, creates a list of host, hostgroup and service cfg files in nagios/etc dir. This is just for the intial setup...I want to use the CCM in future.

This works fine, I can see the hosts and services fine in host/service detail on Nagiosxi.
My problem is that they dont show up in CCM so if I need to do a small tweek to a serivce or host, they are not there.
I know I can go into CCM and 'import config' but my question is... is there any way nagiosXI allows me to do this within my script?


For example with the old nagios core cfg files you could use:
php /usr/local/nagiosxi/tools/xiprepimport.php orig/host.cfg to convert into proper xi format/layout.
(not sure if you still needed to use 'import config' or not.

So I'm looking for some way for me to import the config files without using the GUI(As I may have 100+ hosts, doing this manaully in the GUI would take too much of my time)...


Any help would be appreciated! :)


Thanks,
Disclaimer89
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Creating manual cfg files issue...

Post by abrist »

You can bulk import configs using the config prep tool and import component:
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
http://assets.nagios.com/downloads/nagi ... p_Tool.pdf
Former 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.
Locked