Page 1 of 1

Manual Installation Issue

Posted: Mon Aug 22, 2016 1:04 pm
by tah7004
Hello,

I'm trying to do a manual installation of Nagios XI 5.2.9 on a 64 bit RHEL 6.8 vm.
Looking at the install.log, I got a NAGIOSSQL Login Failed.

Can anyone help?

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 1:09 pm
by rkennedy
Was MySQL already installed on this machine by chance? Otherwise, the issue is coming down to when XI runs a wget against itself.

Code: Select all

/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&username=nagiosxi&password=n@gweb' -O nagiosql.login--2016-08-22 13:54:44--  http://localhost/nagiosxi/includes/components/ccm/
Resolving bcp.cpmc.columbia.edu... 156.111.60.156
Update your /etc/hosts and make sure localhost resolves to 127.0.0.1, then try again. If you're still having issues please post the install.log once again, and your /etc/hosts file for us to look at.

Code: Select all

[root@localhost etc]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 1:15 pm
by tah7004
I had previous errors before when I attempted to install Nagios and was receiving database exists errors. Therefore, I completely removed mysql and the cache/configuration files. I removed everything and did another clean install. It appears that when I run fullinstall script, it downloads and re-installs mysql.

the hosts file do resolve to 127.0.0.1.

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 1:28 pm
by rkennedy
tah7004 wrote:I had previous errors before when I attempted to install Nagios and was receiving database exists errors. Therefore, I completely removed mysql and the cache/configuration files. I removed everything and did another clean install. It appears that when I run fullinstall script, it downloads and re-installs mysql.

the hosts file do resolve to 127.0.0.1.
It wasn't necessarily a 'clean install', because XI still detected it as an upgrade -

Code: Select all

Nagios XI Installation Log
==========================
DATE: Mon Aug 22 13:49:55 EDT 2016

DISTRO INFO:
RedHatEnterpriseServer
6.8
x86_64

THIS IS AN UPGRADE!
I would try on a new, minimal, RHEL 6.8 machine. Then, after it fails, show us the actual errors that are occurring so we can work through them. Without knowing exactly what has happened this far, it's hard to say and is probably just worth starting fresh.

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 1:31 pm
by ssax
Are you using a proxy? (it looks like it) If so, please check your /etc/yum.conf and your /etc/wgetrc and make sure they are set like at the top this KB article:

https://support.nagios.com/kb/article.php?id=147


Thank you

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 1:39 pm
by tah7004
Yes, I just got the installation to work. The issue was that in my wgetrc file, I didn't put the 127.0.0.1 loop back ip in cidr notation. Thanks for all the help.

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 1:45 pm
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?

Re: Manual Installation Issue

Posted: Mon Aug 22, 2016 2:22 pm
by tah7004
Yes, thanks.