Page 1 of 1

Use config files from Nagios XI on Nagios Core ?

Posted: Sat Feb 10, 2018 1:39 pm
by ks6764
Without going into a long explanation as to why....I would like to know if it is possible to take config files for hosts,hostgroups, contacts, contactgroups, services, servicegroups, etc. that exist currently today on a Nagios XI server and copy them to a Nagios Core server and have them work ?

Secondly, I have been searching the web for any script examples that would work on Nagios Core that would allow me to setup contacts, hosts, hostgroups, etc. in bulk, but have had no luck in finding anything. I would think as long as Nagios Core has been around there would be something. Anyone have a script(s) they can share ?

Thanks much for any input on the above.

Re: Use config files from Nagios XI on Nagios Core ?

Posted: Mon Feb 12, 2018 9:39 am
by mcapra
I would like to know if it is possible to take config files for hosts,hostgroups, contacts, contactgroups, services, servicegroups, etc. that exist currently today on a Nagios XI server and copy them to a Nagios Core server and have them work ?
Assuming the underlying Nagios Core versions are the same, and you update the destination Nagios Core's nagios.cfg file to include the Nagios XI sub-directories, yes this should work. It's not exactly "drag and drop", but the basic concept should work.
I have been searching the web for any script examples that would work on Nagios Core that would allow me to setup contacts, hosts, hostgroups, etc. in bulk, but have had no luck in finding anything.
I don't know about "in bulk", but there's a handful of configuration management utilities out there:
https://www.thruk.org/
https://sourceforge.net/projects/nagiosql/
https://github.com/aytekinaygun/NagConf

It's worth mentioning that support for any of those utilities on this particular support forum will be limited.

Re: Use config files from Nagios XI on Nagios Core ?

Posted: Mon Feb 12, 2018 12:17 pm
by kyang
Thanks for the help @mcapra!
It's worth mentioning that support for any of those utilities on this particular support forum will be limited.
ks6754, Let us know if you have any more questions.

Re: Use config files from Nagios XI on Nagios Core ?

Posted: Mon Feb 12, 2018 12:25 pm
by ks6764
Thanks for the information, you can close this thread now.

Re: Use config files from Nagios XI on Nagios Core ?

Posted: Mon Feb 12, 2018 12:36 pm
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!