Apply Configuration never completes
Apply Configuration never completes
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.
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.
Re: Apply Configuration never completes
Have you tried the steps, outlined on our wiki page?
http://support.nagios.com/wiki/index.ph ... _Completes
http://support.nagios.com/wiki/index.ph ... _Completes
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Apply Configuration never completes
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration never completes
Can you run the following from the command line
And then post the created /tmp/vercfg.txt
Thanks
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > /tmp/vercfg.txt
Thanks
Re: Apply Configuration never completes
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration never completes
Can you send the output of the following command
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.
Code: Select all
ls -l /usr/local/nagiosxi/scripts/ | grep nagiosql
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
[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
-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
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.
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
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration never completes
I think you may have database corruption.
run the following procedure for the nagios database
http://assets.nagios.com/downloads/nagi ... tabase.pdf
run the following procedure for the nagios database
http://assets.nagios.com/downloads/nagi ... tabase.pdf