Migrate automation scripts from Nagios xi to 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
breddymd0034
Posts: 5
Joined: Fri May 29, 2020 9:55 am

Migrate automation scripts from Nagios xi to Nagios core ?

Post by breddymd0034 »

Hi,

In Nagios xi,
we run scripts which create config files in /usr/local/nagios/etc/import/ directory
and then run /usr/local/nagiosxi/scripts/reconfigure_nagios.sh,

so that above created config files will be shown in both Nagios core and Nagios xi.

We are trying to implement same in Nagios core 4.4.6.

So, We have installed Nagios core 4.4.6 on new centos 7 machine.

But import directory is missing in /usr/local/nagios/etc/

Can you please guide me on any alternatives for following Nagios xi functionalities in Nagios core
a) Import directory
b) reconfigure_nagios.sh scripts

Thanks,
Bhaskar.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Migrate automation scripts from Nagios xi to Nagios core

Post by benjaminsmith »

Hi Bhaskar.,

Nagios Core and Nagios XI handle the configuration files differently since the latter are created by the software and are not meant to be edited by hand.

You can just create a new directory in Core to place these configuration files and then res-start Core to import them. You will need to add the directory to the Nagios Configuration file so it knows to look there.

https://assets.nagios.com/downloads/nag ... gmain.html

Hope that helps answer your question.

Thanks for being a member of the Nagios Community Support Forum!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
breddymd0034
Posts: 5
Joined: Fri May 29, 2020 9:55 am

Re: Migrate automation scripts from Nagios xi to Nagios core

Post by breddymd0034 »

Thank you smith for the response.

Is there any way to take backup and if restart core failed then it should go back to previous config?

We know that functionality available in Nagios xi.

do we have any alternatives for this functionality?

Thanks
Locked