Stuck at Apply Configuration Waiting for Config Verification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Stuck at Apply Configuration Waiting for Config Verification

Post by SavaSC »

I am having an issue with both of my Nagios instances where it will not get past "Waiting for Configuration Verification" on the Apply Configuration page. It just sits there adding more dots to the screen. At first I thought it was due to the new release, but I rolled back a snapshot on one of them to before the update and it's still doing it.

Please advise where I need to look in order to troubleshoot this issue.

Thanks.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by mcapra »

Does running the reconfigure_nagios.sh script produce any telling results/errors?

If my memory serves right, it should be located here:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Former Nagios employee
https://www.mcapra.com/
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by SavaSC »

Here is the output:
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=@sup3Rs3cuR3!' -O nagiosql.login--2017-07-10 10:13:12-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/nagiosxi/includes/components/ccm/ [following]
--2017-07-10 10:13:12-- https://localhost/nagiosxi/includes/components/ccm/
Connecting to localhost (localhost)|127.0.0.1|:443... connected.
WARNING: cannot verifificate subject alternative name matches
requested host name ‘localhost’.
HTTP request senty localhost's certificate, issued by ‘/C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA’:
Unable to locally verify the issuer's authority.
WARNING: no cert, awaiting response... 302 Found
Location: https://localhost/nagiosxi/login.php?re ... f&noauth=1 [following]
--2017-07-10 10:13:13-- https://localhost/nagiosxi/login.php?re ... f&noauth=1
Reusing existing connection to localhost:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’

0K .......... .......... ..... 2.45M=0.01s

2017-07-10 10:13:13 (2.45 MB/s) - ‘nagiosql.login’ saved [26032]

NAGIOSQL LOGIN FAILED!
If I'm reading this correctly, it says that my CA is bad? If that's the case, I'm really confused. I can log into the webpage just fine. But when I write a config it fails? And the DB is on the localhost, according to the attached screenshot.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by tgriep »

Login to the XU GUI and go to the Core Config Manager > Settings menu, then select the Database tab.
Change the Database Password to the following

Code: Select all

n@gweb
Then click on the Save Settings button and see if the Apply Config works for you.

If it still fails, go to the Admin > Security Credentials menu and click on the Update Credentials button but do not update any of the fields.
Then try to Apply the Config again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by SavaSC »

Sadly, neither of these worked.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by scottwilkerson »

This looks like you are not going to https from the beginning and being re-directed.

This will happen if you miss the step on page 8 updating the config.inc.php when setting up SSL
https://assets.nagios.com/downloads/nagiosxi/docs/Configuring-SSL-with-Nagios%20XI.pdf

set

Code: Select all

$cfg['use_https']=true;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by SavaSC »

*BOOM* That did it. The "use_https" line wasn't in the config at all. I added it and made sure the other steps were don. Now they both work.

Thanks! You may close this thread.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Stuck at Apply Configuration Waiting for Config Verifica

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked