Can't Apply Configuration in Core Config Manager

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Can't Apply Configuration in Core Config Manager

Post 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
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't Apply Configuration in Core Config Manager

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post 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).
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can't Apply Configuration in Core Config Manager

Post 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?
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post by dc7772000 »

No luck with the service shutdowns, and the legacy CCM has the same results Here are the 2 files.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Can't Apply Configuration in Core Config Manager

Post 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.
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post 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
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Can't Apply Configuration in Core Config Manager

Post 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
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't Apply Configuration in Core Config Manager

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked