Use config files from Nagios XI on Nagios Core ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ks6764
Posts: 58
Joined: Thu Aug 20, 2015 10:42 am

Use config files from Nagios XI on Nagios Core ?

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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.
Former Nagios employee
https://www.mcapra.com/
kyang

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

Post 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.
ks6764
Posts: 58
Joined: Thu Aug 20, 2015 10:42 am

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

Post by ks6764 »

Thanks for the information, you can close this thread now.
kyang

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

Post 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!
Locked