Apply Configuration Alternative
Posted: Wed Feb 21, 2018 2:34 pm
NagiosXI: 5.4.12
I want a script to kick off "Apply Configuration" so I can make changes or updates and some time in the early morning have the configurations updated automatically. I have looked at /usr/local/nagiosxi/scripts/reconfigure_nagios.sh, but I am encountering a number of problems with it. Is there a more reliable script or way to do it?
The main error I get is "HTTP request sent, awaiting response... 500 Internal Server Error". I have already extended the php execute time, but it still fails often enough to not be reliable.
I want a script to kick off "Apply Configuration" so I can make changes or updates and some time in the early morning have the configurations updated automatically. I have looked at /usr/local/nagiosxi/scripts/reconfigure_nagios.sh, but I am encountering a number of problems with it. Is there a more reliable script or way to do it?
The main error I get is "HTTP request sent, awaiting response... 500 Internal Server Error". I have already extended the php execute time, but it still fails often enough to not be reliable.
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 120
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 120
; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64
; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000