Manual Installation Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tah7004
Posts: 5
Joined: Mon Aug 22, 2016 12:51 pm

Manual Installation Issue

Post 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?
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Manual Installation Issue

Post 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
Former Nagios Employee
tah7004
Posts: 5
Joined: Mon Aug 22, 2016 12:51 pm

Re: Manual Installation Issue

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Manual Installation Issue

Post 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.
Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Manual Installation Issue

Post 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
tah7004
Posts: 5
Joined: Mon Aug 22, 2016 12:51 pm

Re: Manual Installation Issue

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Manual Installation Issue

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
tah7004
Posts: 5
Joined: Mon Aug 22, 2016 12:51 pm

Re: Manual Installation Issue

Post by tah7004 »

Yes, thanks.
Locked