Re: Weird Renaming Problem
Posted: Tue Jun 02, 2015 9:00 am
We resolved all warnings after a normal apply configuration and doubled all values you mentioned in php.ini.
But I'm still experiencing exactly the same issue as before. Applying after renaming a host takes ages and then apply configuration fails with error:
Error: Template 'dig_srv_win_drv_A_usage_prio2' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/testserver.cfg', starting on line 52)
testserver.cfg does not exist on the Nagios XI server.
Tail of cmdsubsys.log
When I try rolling back to the latest config snapshot, tailing cmdsubsys.log again gives me:
After a long time, the configuration gets applied, but the host is not renamed it seems.
Please advice how to continue troubleshoot this.
Code: Select all
; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
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.
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 120
; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64
; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 512M
Error: Template 'dig_srv_win_drv_A_usage_prio2' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/testserver.cfg', starting on line 52)
testserver.cfg does not exist on the Nagios XI server.
Tail of cmdsubsys.log
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-06-02 15:43:11-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”
0K ........
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
............................................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
. 74.4 =2m15s
2015-06-02 15:45:27 (74.4 B/s) - “nagiosql.export.monitoring” saved [10078]
NAGIOSQL WRITE CONFIGS FAILED!\n
OUTPUT=NAGIOSQL WRITE CONFIGS FAILED!\n
RETURNCODE=5
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
............................................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Please advice how to continue troubleshoot this.