Page 1 of 1
Fresh XI (5.3.2) test install fails to save config
Posted: Thu Nov 17, 2016 2:53 pm
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
Re: Fresh XI (5.3.2) test install fails to save config
Posted: Thu Nov 17, 2016 3:08 pm
by tgriep
Can you post the last 20 lines from the output when you run the ./reconfigure_nagios.sh?
Re: Fresh XI (5.3.2) test install fails to save config
Posted: Thu Nov 17, 2016 4:12 pm
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]$
--------------------------------------------------------------------------------------------------------------------------------
Re: Fresh XI (5.3.2) test install fails to save config
Posted: Thu Nov 17, 2016 5:26 pm
by tgriep
Can you post the /usr/local/nagiosxi/html/config.inc.php file so we can view it?
Re: Fresh XI (5.3.2) test install fails to save config
Posted: Fri Nov 18, 2016 8:47 am
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)
Re: Fresh XI (5.3.2) test install fails to save config
Posted: Fri Nov 18, 2016 11:55 am
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
to
Then try the reconfigure script.
Re: Fresh XI (5.3.2) test install fails to save config
Posted: Fri Nov 18, 2016 12:48 pm
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
to
Then try the reconfigure script.
This worked, thank you
Please close the thread