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.
Migrate automation scripts from Nagios xi to Nagios core ?
-
- Posts: 5
- Joined: Fri May 29, 2020 9:55 am
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Migrate automation scripts from Nagios xi to Nagios core
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!
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 5
- Joined: Fri May 29, 2020 9:55 am
Re: Migrate automation scripts from Nagios xi to Nagios core
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
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