Page 1 of 1

Never ending Waiting for configuration verification

Posted: Wed Sep 12, 2012 12:30 am
by ytlcomm
Hi guys,

Need your help on this. After applying any configuration changes, Waiting for configuration verification take a very long time. Sometime almost 40minutes - 60 minutes. Refer image below and notice the scroll bar below, http://i.imgur.com/I52uP.jpg

I've modify php.ini according to FAQ.

Code: Select all

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 1800

; 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 = 1800

; 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 = 1024M
Additional information,
Nagios XI 2011 R3.2
Host : 10432
Service : 12065
Load average: 9.72, 7.19, 6.97

Code: Select all

# free -m
             total       used       free     shared    buffers     cached
Mem:          7870       6807       1062 
How to make this process faster? We need to wait like an hour for any changes to take effect.

Re: Never ending Waiting for configuration verification

Posted: Wed Sep 12, 2012 6:46 am
by ITFCTECH
Not sure if you have it running on a virtual machine ie Vmware
But we had a similar issue running Nagios Centos 5 on vmware ESX

I added a second CPU to the VM and it made a lot of difference interface is nice and quick now as well as applying configurations.

Re: Never ending Waiting for configuration verification

Posted: Wed Sep 12, 2012 7:50 am
by scottwilkerson
ITFCTECH is correct, an additional CPU will help, but I would guess you have circular references in your config.

Go to Configure -> CCM -> Configuration Snapshots
and click the paper icon "View Output" and download the latest configuration verification output.

Then attach that to your next post

Re: Never ending Waiting for configuration verification

Posted: Thu Sep 13, 2012 2:56 am
by ytlcomm
Guys,
Thanks for your respond. I've upgraded the CPU to 12 cores. Still not change. How do we check for circular references in config?

Is there any command line or script I can run besides clicking Apply Configuration button? Thanks

Re: Never ending Waiting for configuration verification

Posted: Thu Sep 13, 2012 10:09 am
by scottwilkerson
I was wrong, I don't see any circular references.

This is a rather large setup. If you have the memory available you may get a significant boost by increasing the memory in your php.ini and then restarting apache

Also, lets make sure you only have one memory reference in your php.ini by running

Code: Select all

cat /etc/php.ini|grep memory_limit

Re: Never ending Waiting for configuration verification

Posted: Mon Sep 17, 2012 9:57 pm
by ytlcomm
ytlcomm wrote: Is there any command line or script I can run besides clicking Apply Configuration button? Thanks
Please advice.

Re: Never ending Waiting for configuration verification

Posted: Tue Sep 18, 2012 7:54 am
by scottwilkerson
You can run

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh