Never ending Waiting for configuration verification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Never ending Waiting for configuration verification

Post 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.
ITFCTECH
Posts: 16
Joined: Fri Mar 04, 2011 7:34 am
Location: London UK
Contact:

Re: Never ending Waiting for configuration verification

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Never ending Waiting for configuration verification

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Re: Never ending Waiting for configuration verification

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Never ending Waiting for configuration verification

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Re: Never ending Waiting for configuration verification

Post by ytlcomm »

ytlcomm wrote: Is there any command line or script I can run besides clicking Apply Configuration button? Thanks
Please advice.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Never ending Waiting for configuration verification

Post by scottwilkerson »

You can run

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked