Apply Configuration-Waiting For Verification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kyang

Re: Apply Configuration-Waiting For Verification

Post by kyang »

In your XI home page --> go to Admin > under on the left click "System Config" > click "Reset Security Credentials"

- Don't change anything, just click the "Update" Credentials button.

Now try the reconfigure and post the output.

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Thanks!
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Apply Configuration-Waiting For Verification

Post by hoegh »

Hi kyang,

I have performed the above procedure.
PFB 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=configadmin' -O nagiosql.login--2018-02-19 13:14:10-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
NAGIOSQL LOGIN FAILED!


Regards,
Neha.
Thanks
Höegh
bolson

Re: Apply Configuration-Waiting For Verification

Post by bolson »

Open /etc/hosts in your favorite editor and make sure it is identical to this:

Code: Select all

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
Let us know if this resolves your issue. Thank you.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Apply Configuration-Waiting For Verification

Post by hoegh »

Hi,

My /etc/hosts file is as below:


127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost xi-c6x-x64
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost xi-c6x-x64

Thanks & Regards,
Neha Singh.
Thanks
Höegh
bolson

Re: Apply Configuration-Waiting For Verification

Post by bolson »

In your /etc/hosts file, move "localhost" so it is the first entry after 127.0.0.1 as in the example I sent you. The line should begin:

Code: Select all

127.0.0.1     localhost  localhost.localdomain
Let us know if this resolves your Apply Configuration hanging issue.

Thank you!
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Apply Configuration-Waiting For Verification

Post by hoegh »

Hi,

No, the changes didn't fixed our issue.

Thanks & Regards,
Neha Singh.
Thanks
Höegh
bolson

Re: Apply Configuration-Waiting For Verification

Post by bolson »

Edit your /etc/hosts file and comment out the line that begins ::1 so it reads # ::1

Then rerun:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

And post the output
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Apply Configuration-Waiting For Verification

Post by hoegh »

Hi bolson,

PFB output after changing the /etc/hosts file

[root@xxxxxx scripts]# ./reconfigure_nagios.sh
URL: https://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://loc alhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'sub mit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password= configadmin' -O nagiosql.login--2018-02-22 12:16:15-- https://localhost/nagiosx i/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
WARNING: cannot verify localhostâs certificate, issued by â/C=--/ST=SomeState/L= SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/e mailAddress=root@localhost.localdomainâ
Unable to locally verify the issuerâs a uthority.
WARNING: certificate common name âlocalhost.localdomainâlocalhostâ
HTTP reque st sent, awaiting response... 401 Authorization Required
Authorization failed.
NAGIOSQL LOGIN FAILED!

Regards,
Neha Singh.
Thanks
Höegh
bolson

Re: Apply Configuration-Waiting For Verification

Post by bolson »

Please attach this file:

/etc/httpd/conf.d/ssl.conf
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Apply Configuration-Waiting For Verification

Post by npolovenko »

@hoegh, Looks like you have some ssl certificate problems. Can you go over each section of this article and let us know if that resolved your problem:
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked