Fresh XI (5.3.2) test install fails to save config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Fresh XI (5.3.2) test install fails to save config

Post by dlukinski »

Hello NAGIOS support

Our fresh XI install (VM from the template, 5.3.2) initially hanged on verifying any configurations.
We added localhost to /etc/hosts, but it started failing instead (old snapshots also fail to apply)
Tried su nagios
./reconfigure_nagios.sh

Now getting NAGIOSSQL LOGIN FAILED!

Please help
Thank you
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Fresh XI (5.3.2) test install fails to save config

Post by tgriep »

Can you post the last 20 lines from the output when you run the ./reconfigure_nagios.sh?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Fresh XI (5.3.2) test install fails to save config

Post by dlukinski »

tgriep wrote:Can you post the last 20 lines from the output when you run the ./reconfigure_nagios.sh?
Here you go
-----------------------------------------------------------------------------------------------
login as: root
[email protected]'s password:
Last login: Thu Nov 17 14:42:57 2016
[root@cakc-nagxitest02 ~]# su nagios
[nagios@cakc-nagxitest02 root]$ cd /usr/local/nagiosxi/scripts
[nagios@cakc-nagxitest02 scripts]$ ./reconfigure_nagios.sh
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=mukGQA' -O nagiosql.login--2016-11-17 16:11:28-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

[ <=> ] 19,675 --.-K/s in 0.02s

2016-11-17 16:11:29 (964 KB/s) - “nagiosql.login” saved [19675]

NAGIOSQL LOGIN FAILED!
[nagios@cakc-nagxitest02 scripts]$
--------------------------------------------------------------------------------------------------------------------------------
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Fresh XI (5.3.2) test install fails to save config

Post by tgriep »

Can you post the /usr/local/nagiosxi/html/config.inc.php file so we can view it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Fresh XI (5.3.2) test install fails to save config

Post by dlukinski »

tgriep wrote:Can you post the /usr/local/nagiosxi/html/config.inc.php file so we can view it?
Here you go (zipped / attached)
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: Fresh XI (5.3.2) test install fails to save config

Post by tgriep »

Login to the XI GUI and go to the Admin > Reset Security Credentials menu, click the Update Credentials button and see if the reconfigure_nagios.sh script works.

One question, was SSL enabled on the server?
If so, edit the /usr/local/nagiosxi/html/config.inc.php file and change this line from

Code: Select all

$cfg['use_https'] = false;
to

Code: Select all

$cfg['use_https'] = true;
Then try the reconfigure script.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Fresh XI (5.3.2) test install fails to save config

Post by dlukinski »

tgriep wrote:Login to the XI GUI and go to the Admin > Reset Security Credentials menu, click the Update Credentials button and see if the reconfigure_nagios.sh script works.

One question, was SSL enabled on the server?
If so, edit the /usr/local/nagiosxi/html/config.inc.php file and change this line from

Code: Select all

$cfg['use_https'] = false;
to

Code: Select all

$cfg['use_https'] = true;
Then try the reconfigure script.

This worked, thank you
Please close the thread
Locked