Apply Configuration never completes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Apply Configuration never completes

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Apply Configuration never completes

Post by lmiltchev »

Have you tried the steps, outlined on our wiki page?

http://support.nagios.com/wiki/index.ph ... _Completes
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

Post by mrochelle »

Yes. I'm attaching a copy of the php.ini for reference.
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: Apply Configuration never completes

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

Post by mrochelle »

Here you go. Thank You for reviewing. I had to zip it since it was over the 2mb limit.
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: Apply Configuration never completes

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

Post 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
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

Post 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.
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

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

Re: Apply Configuration never completes

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked