Page 1 of 3

Can't Apply Configuration in Core Config Manager

Posted: Fri Mar 08, 2013 5:14 pm
by dc7772000
I'm having some problems deploying a newly built Nagios XI server.

I've built a clean CentOS 6.3 (64 bit) server and did a fresh install of Nagios XI (2012R1.6). I've customized my setup with 2 changes. I added LDAP integration via Active Directory Integration under Managed Components and I forced all http connections to go through https. At this point everything looks good however when I tried to add my first server via Monitoring Wizard, I ran into a Backend Login to the Core Config Manager failed error. I've tried the solutions presented in other threads with similar problems but so far have had no success. I've included the error_log.

David

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 9:36 am
by abrist
First, lets go to Admin -> Reset Security Credentials
Then click update credentials

Try applying configuration again

If that doesn't work, go to
Configure -> CCM -> Config Manager Admin -> Manage Config Access
and make sure you do in fact have an username that is nagiosxi and it is active

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 10:17 am
by dc7772000
Yep, I reran those steps and all messages returned says successful. I also changed the password to CCM and verified log in was successful. However, it is still failing when I try to apply the configuration. (Confugre>CCM>Apply Configuration as well as trying to add a host).

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 10:39 am
by slansing
Have you ran through the following section of our Wiki?:

http://support.nagios.com/wiki/index.ph ... n_Problems

Please post the text files that are shown in that section.

Also, please run the following:

Code: Select all

chown nagios:nagios /usr/local/nagiosxi/scripts/nagiosql*

Code: Select all

service nagios stop

killall -9 nagios

service httpd stop

service mysqld stop

service nagios start

service httpd start

service mysqld start
And try to apply configuration again, if not, are you able to do so through the legacy CCM?

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 11:07 am
by dc7772000
No luck with the service shutdowns, and the legacy CCM has the same results Here are the 2 files.

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 11:46 am
by mguthrie
Can you verify that a nagiosxi user exists in the Core Config Manager Admin->Manage Config Access page?

Also, can you post the contents of the /usr/local/nagiosxi/scripts/nagiosql.login file? That should contain info on why the login is failing.

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 12:10 pm
by dc7772000
Yes, nagiosxi does exist and is active. Here's the nagiosql.login file. Is there any chance this problem could caused by the use https instead of http?

David

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 2:05 pm
by mguthrie
Yeah, can you make sure you have the following config variable set in /usr/local/nagiosxi/html/config.inc.php

Code: Select all

$cfg['use_https'] = true;
It won't be there by default, so you'll have to add it. Also, you may want to review the following document just to make sure you covered all of the steps. You may want to leave port 80 open until you've verified each of the steps.
http://library.nagios.com/library/produ ... -nagios-xi

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 2:46 pm
by dc7772000
I've just double checked my settings and they look good per the docs you sent. So https does not look like the culprit.

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 3:06 pm
by abrist
We need to double check something. When you "reset security credentials", did you change any of the fields? I ask because usually that procedure resets the nagiosql password, but your logs show that it is still trying the old password. Could you try resetting the credentials again without changing any of the text fields?