Page 1 of 3

Apply Configuration never completes

Posted: Wed Sep 26, 2012 7:12 am
by mrochelle
Well, I've ran into a problem while adding host configurations and the apply configuration process will not complete. There is quite a bit of information in the support forum so let me post some of the information for your analysis:

Following is the output from my config verification:
Checked 7081 services.
Checking hosts...
Checked 7222 hosts.
Checking host groups...
Checked 61 host groups.
Checking service groups...
Checked 60 service groups.
Checking contacts...
Checked 4 contacts.
Checking contact groups...
Checked 18 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 131 commands.
Checking time periods...
Checked 10 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 6920
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
________________________________

Following is the output from the command line attempt:
Reference attachment Cmdline and php_ini_info

The following keeps repeating from the cmd line:

--2012-09-26 07:08:28-- (try: 2) http://localhost/nagiosql/admin/verify.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 8:29 am
by lmiltchev
Have you tried the steps, outlined on our wiki page?

http://support.nagios.com/wiki/index.ph ... _Completes

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 8:51 am
by mrochelle
Yes. I'm attaching a copy of the php.ini for reference.

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 1:30 pm
by scottwilkerson
Can you run the following from the command line

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > /tmp/vercfg.txt
And then post the created /tmp/vercfg.txt

Thanks

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 1:45 pm
by mrochelle
Here you go. Thank You for reviewing. I had to zip it since it was over the 2mb limit.

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 4:18 pm
by scottwilkerson
Can you send the output of the following command

Code: Select all

ls -l /usr/local/nagiosxi/scripts/ | grep nagiosql
Also, can you try to run through the write config files under Configure -> CCM -> Tools -> Write Config Files
Run each command from top down waiting for each to complete, and stopping if you see any errors , report any errors back here.

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 4:27 pm
by mrochelle
[nagios@nagprod01 ~]$ ls -l /usr/local/nagiosxi/scripts/ | grep nagiosql
-rwxr-x---. 1 nagios nagios 649 Jun 29 13:51 export_nagiosql.sh
-rwxr-x---. 1 nagios nagios 429 Jun 29 13:51 import_nagiosql.sh
-rw-r----- 1 nagios nagios 153 Sep 26 15:36 nagiosql.cookies
-rw-r-----. 1 nagios nagios 253324 Jun 29 13:51 nagiosql_defaults.sql
-rwxr-x---. 1 nagios nagios 970 Jun 29 13:51 nagiosql_delete_contact.php
-rwxr-x---. 1 nagios nagios 2010 Jun 29 13:51 nagiosql_delete_host.php
-rwxr-x---. 1 nagios nagios 505 Jun 29 13:51 nagiosql_delete_object.sh
-rwxr-x---. 1 nagios nagios 3118 Jun 29 13:51 nagiosql_delete_service.php
-rwxr-x---. 1 nagios nagios 993 Jun 29 13:51 nagiosql_delete_timeperiod.php
-rw-r----- 1 nagios nagios 7400 Sep 25 10:26 nagiosql.export.additional
-rwxr-x---. 1 nagios nagios 1637 Jun 29 13:51 nagiosql_exportall.php
-rw-r----- 1 nagios nagios 0 Sep 26 15:36 nagiosql.export.monitoring
-rwxr-x---. 1 nagios nagios 1323 Jun 29 13:51 nagiosql_importall.php
-rw-r----- 1 nagios nagios 4998 Sep 25 11:12 nagiosql.import.monitoring
-rw-r----- 1 nagios nagios 5286 Sep 26 15:36 nagiosql.login
-rwxr-x---. 1 nagios nagios 1847 Jun 29 13:51 nagiosql_login.php
-rwxr-x---. 1 nagios nagios 258 Jun 29 13:51 nagiosql_trim_backups.sh

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 4:38 pm
by mrochelle
Following is the error when trying to write the config file:
No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 4:48 pm
by mrochelle
I have also noticed that my Host and/or Service Group (Status Detail views) are all empty and my Google Maps no longer displays my hosts? Go figure?

Re: Apply Configuration never completes

Posted: Wed Sep 26, 2012 5:24 pm
by scottwilkerson
I think you may have database corruption.

run the following procedure for the nagios database
http://assets.nagios.com/downloads/nagi ... tabase.pdf