After upgrade to 2012R2.1 "Apply Configuration" hangs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nauessp
Posts: 26
Joined: Tue Jul 06, 2010 12:48 pm

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by nauessp »

No errors. It just ran for a while and looked like:

Code: Select all

# su nagios -c '/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php'
...........................................................
PROCESSED 0 COMMANDS
Running it a few more times prepended with "time" gives a running time of about a minute.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by lmiltchev »

Go to: Admin->System Profile->Download Profile, save the "profile.zip" file, and email it to [email protected]. Type "Re: After upgrade to 2012R2.1 "Apply Configuration" hangs" and the email subject field. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by slansing »

We found a solution, please open the following file and make the edits suggested:

Code: Select all

vi /usr/local/nagiosxi/html/includes/utilsx.inc.php
Edit line 167 "curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);"

to:

Code: Select all

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,1);
Changing the 2 to a 1. Then write this file, this should resolve your problems.
nauessp
Posts: 26
Joined: Tue Jul 06, 2010 12:48 pm

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by nauessp »

We are still sorting out what our support email is... I think it is still set to an employee who left. I'll open a support ticket as soon as it is sorted.

I did try the solution slansing just posted. It cleared up a almost everything! The "Apply Configuration" no longer hangs forever, there are five green checks/dots at the top right, and scheduled immediate checks come back without error.

The only thing left is the "Admin -> System Profile" still comes back with:

Code: Select all

Test wget To locahost

WGET From URL: https://localhost/nagiosql/index.php 
Running:
/usr/bin/wget https://localhost/nagiosql/index.php 
--2013-06-04 16:30:14-- https://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
ERROR: certificate common name `watcher-dev.ucc.nau.edu' doesn't match requested host name `localhost'.
To connect to localhost insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
This fixes the things I really care about. However, let me know if you would like me to try anything else to clear up this SSL/localhost issue. We have a test server for this very reason.

Thanks again! :D
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by scottwilkerson »

nauessp wrote:ERROR: certificate common name `watcher-dev.ucc.nau.edu' doesn't match requested host name `localhost'.
To connect to localhost insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
This is actually normal
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nauessp
Posts: 26
Joined: Tue Jul 06, 2010 12:48 pm

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by nauessp »

It appears R2012R2.2 fixes this completely. Things are running better than ever and I've had no trouble after lots and lots of changes!

Thanks for all the help.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: After upgrade to 2012R2.1 "Apply Configuration" hangs

Post by lmiltchev »

I'm glad your issue has been resolved!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked