Page 2 of 3
Re: Apply Configuration-Waiting For Verification
Posted: Fri Feb 16, 2018 3:46 pm
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!
Re: Apply Configuration-Waiting For Verification
Posted: Mon Feb 19, 2018 7:15 am
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.
Re: Apply Configuration-Waiting For Verification
Posted: Mon Feb 19, 2018 2:30 pm
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.
Re: Apply Configuration-Waiting For Verification
Posted: Tue Feb 20, 2018 2:44 am
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.
Re: Apply Configuration-Waiting For Verification
Posted: Tue Feb 20, 2018 11:00 am
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!
Re: Apply Configuration-Waiting For Verification
Posted: Wed Feb 21, 2018 5:00 am
by hoegh
Hi,
No, the changes didn't fixed our issue.
Thanks & Regards,
Neha Singh.
Re: Apply Configuration-Waiting For Verification
Posted: Wed Feb 21, 2018 4:54 pm
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
Re: Apply Configuration-Waiting For Verification
Posted: Thu Feb 22, 2018 6:18 am
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=
[email protected]â
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.
Re: Apply Configuration-Waiting For Verification
Posted: Thu Feb 22, 2018 5:36 pm
by bolson
Please attach this file:
/etc/httpd/conf.d/ssl.conf
Re: Apply Configuration-Waiting For Verification
Posted: Thu Feb 22, 2018 5:37 pm
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