Temporarily disable configuration applies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Temporarily disable configuration applies

Post by WillemDH »

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
Nagios XI 5.8.1
https://outsideit.net
bolson

Re: Temporarily disable configuration applies

Post by bolson »

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

Re: Temporarily disable configuration applies

Post by mcapra »

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:
bolson wrote:It could probably be done via scripting but it would result in an unsupported configuration.
Former Nagios employee
https://www.mcapra.com/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Temporarily disable configuration applies

Post by ssax »

I suppose you could also do:

Code: Select all

touch /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
chattr +i /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
Then when you want to allow:

Code: Select all

chattr -i /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
Locked