Hello,
I'm wondering if there is a way to temporarily disable apply configurations? The reason for this is that we sometimes have to run reports, do inventory sync's from cmdb to Nagios XI, update Nagios or the server. In an evergrowing team, we do send an email before we do maintenace or run jobs were configuration applies arent ideal, but there seems to be always someone who did not read that email. A way to temporarily prevent configuration applies would be a nice way to make 100 % sure no applies are exceuted.
Grtz
Willem
Temporarily disable configuration applies
Temporarily disable configuration applies
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
bolson
Re: Temporarily disable configuration applies
Hello WillemDH,
Configuration applies happen under the following circumstances:
You click Apply Configuration in the CCM
You run and finish a configuration wizard
You modify a configuration.
This functionality cannot be turned off. It could probably be done via scripting but it would result in an unsupported configuration. My recommendation would be to leverage the multi-tenancy feature when creating users to establish tighter controls on when updates that initiate a configuration apply are done. Please let me know if you have any additional questions.
Thank you for visiting the Nagios Support Forum.
Configuration applies happen under the following circumstances:
You click Apply Configuration in the CCM
You run and finish a configuration wizard
You modify a configuration.
This functionality cannot be turned off. It could probably be done via scripting but it would result in an unsupported configuration. My recommendation would be to leverage the multi-tenancy feature when creating users to establish tighter controls on when updates that initiate a configuration apply are done. Please let me know if you have any additional questions.
Thank you for visiting the Nagios Support Forum.
Re: Temporarily disable configuration applies
My mind goes to custom Javascript/CSS included via the custom includes component which replaces the "Apply Configuration" button with a big old "NO TOUCHY". Enable it when you're running reports, disable it when they're all done. Not much help if people are applying the config via the API, though.
Though I'm wondering what the stance is on the custom includes component driven solution relative to this statement:
Though I'm wondering what the stance is on the custom includes component driven solution relative to this statement:
bolson wrote:It could probably be done via scripting but it would result in an unsupported configuration.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Temporarily disable configuration applies
I suppose you could also do:
Then when you want to allow:
Code: Select all
touch /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
chattr +i /usr/local/nagiosxi/scripts/reconfigure_nagios.lockCode: Select all
chattr -i /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock