Page 3 of 3

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

Posted: Mon Jun 03, 2013 5:13 pm
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.

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

Posted: Tue Jun 04, 2013 1:42 pm
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!

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

Posted: Tue Jun 04, 2013 3:01 pm
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.

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

Posted: Tue Jun 04, 2013 6:38 pm
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

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

Posted: Tue Jun 04, 2013 8:37 pm
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

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

Posted: Fri Jun 07, 2013 1:55 pm
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.

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

Posted: Fri Jun 07, 2013 2:00 pm
by lmiltchev
I'm glad your issue has been resolved!