Page 1 of 1

Migrate automation scripts from Nagios xi to Nagios core ?

Posted: Wed Sep 16, 2020 2:00 pm
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.

Re: Migrate automation scripts from Nagios xi to Nagios core

Posted: Wed Sep 16, 2020 5:52 pm
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!

Re: Migrate automation scripts from Nagios xi to Nagios core

Posted: Fri Sep 18, 2020 9:31 am
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