Apply Configuration hangs forever, might be SSL related

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration hangs forever, might be SSL related

Post by mguthrie »

Good deal. We're going to post a new devel snapshot tomorrow and I'll post the link for it. You can download and run the upgrade script to test the fixes.

In the meantime, I'll also have you try the following things. In your /usr/local/nagiosxi/html/config.inc.php file, make sure the following line is present and set to "true":

$cfg['use_https']=true; //set this for true if you're using strict ssl.

Also, in the Core Config Manager->Config Manager Admin->Config Manager Settings, set the protocol to https as well.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration hangs forever, might be SSL related

Post by mguthrie »

Development Snapshot posted at the following URL. Download to the /tmp directory, untar, and run the "upgrade" script.
http://assets.nagios.com/downloads/nagi ... 654.tar.gz

Let us know how it goes : )
nauessp
Posts: 26
Joined: Tue Jul 06, 2010 12:48 pm

Post by nauessp »

Good morning!

The "$cfg['use_https']=true" option in /usr/local/nagiosxi/html/config.inc.php was not there, but I added the line and restarted everything. I also double checked the Config Manager Settings, and the protocol was set as https. After the change in config.inc.php and a restart of everything, nothing changed. The "Apply Configuration" still hung forever.

I then tried the Snapshot you linked on our development server. The upgrade script worked, and it seems to have fixed the problem! I have added, changed, and removed things and the "Apply Configuration" is finishing and returning the "Continue" button. Never thought I'd be so happy to see that button!

If it would be helpful, I can try this Snapshot on our production server as well. It has a large, complex set of hosts, services, notification, etc. (If this is a fairly stable snapshot, I may want to use it anyway...) Or development server is configured the same way, but only has a few things set up.

Thanks for all your help!
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Apply Configuration hangs forever, might be SSL related

Post by nscott »

Thats fantastic nauessp. Thanks a lot for replying with the steps you took to fix the problem too!

Regards,
Nicholas Scott
Former Nagios employee
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration hangs forever, might be SSL related

Post by mguthrie »

We're waiting to here back on one more test case, but if all goes well the snapshot we sent will be the next point release. Thanks for getting back to us!
nauessp
Posts: 26
Joined: Tue Jul 06, 2010 12:48 pm

Re: Apply Configuration hangs forever, might be SSL related

Post by nauessp »

I upgraded our production environment and everything is working great. When the "Apply Configuration" is clicked it finishes up cleanly, even with hundreds and hundreds of hosts/services/etc.

I also noticed that all 6 of the little green "System Ok" check boxes show up. Before this update, only a few of them showed up when running with SSL. Just a small thing, but looks like stuff is working better than before.

Thanks again!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration hangs forever, might be SSL related

Post by mguthrie »

Awesome! Glad to hear it!
c0ldf1r3
Posts: 22
Joined: Thu May 05, 2011 8:34 pm

Re: Apply Configuration hangs forever, might be SSL related

Post by c0ldf1r3 »

I too am experiencing the same issue:
Applying Configuration

Command submitted for processing...
Waiting for configuration verification......................................................

I tried the point release and I am still getting the same reponse. "Waiting for configuration verification......................................................"
I verified https settings.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration hangs forever, might be SSL related

Post by mguthrie »

Also sent reply by email:
We're currently working on isolating the cause of this issue, but we've experienced difficulty so far because of varying server configurations per user. Would you be willing to send us the apache configurations you're using to force SSL, and also any relevant virtual host information that you're using.
c0ldf1r3
Posts: 22
Joined: Thu May 05, 2011 8:34 pm

Re: Apply Configuration hangs forever, might be SSL related

Post by c0ldf1r3 »

reply sent:

Ok I checked and the server is running https. I even set the "server protocol" on NagXI under "Configure NagiosQL Settings" to https.
Now I can log in using http or https.

When I log in via https I still cannot do an "apply configuration".

I only get the following:
Applying Configuration

Command submitted for processing...
Waiting for configuration verification....................................................

It just sits in this state and never closes.
Locked