Page 1 of 1

NAGIOSQL LOGIN FAILED!

Posted: Fri Jan 31, 2014 11:24 am
by eloisalunar
Hi Nagios Support,

During the installation of NagiosXI in our server we have encountered the error below about NAGIOSQL LOGIN FAILED. Please see some logs from our install.log.

URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2014-01-31 16:09:38-- http://localhost/nagiosql/index.php
Resolving localhost... ::1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: “nagiosql.login”

0K 3.15M=0s

2014-01-31 16:09:38 (3.15 MB/s) - Read error at byte 40 (Connection reset by peer).Retrying.

--2014-01-31 16:09:39-- (try: 2) http://localhost/nagiosql/index.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9

The file is already fully retrieved; nothing to do.

NAGIOSQL LOGIN FAILED!

As we have read in some forums, here are the action items that we have taken to resolve this issue:
- Update wgetrc and yum.conf
- Remove files in this directory /usr/local/nagios/etc/import
- Clean install Nagios XI

However, issue still recur. Please help us to troubleshoot this problem.

Re: NAGIOSQL LOGIN FAILED!

Posted: Fri Jan 31, 2014 1:39 pm
by abrist
First, you need to start with a clean, minimal install, almost every package was already installed before you ran the fullinstall script.
Second, do not try to run an upgarde over a failed fullinstall, it will just complicate things.
Third, your copy of redhat needs to be registered.

Re: NAGIOSQL LOGIN FAILED!

Posted: Mon Feb 03, 2014 6:28 am
by arthurroda
Hi abrist,

I am a colleague of eloisalunar and for the steps so far.

We already did a clean installation of NagiosXI. As well as a complete uninstall using the uninstall script "uninstall_xi.sh" found on /usr/local/nagiosxi/scripts after the full installation failed.

For the second part we never did an upgrade on nagiosxi since the initial installation failed.

We also verified that the server we are using is registered by checking /etc/sysconfig/rhn/systemid and that the machine is running on redhat enterprise server 6.5.

Is there another way to know why we encountered the error? A misconfiguration on some parameters perhaps?

Re: NAGIOSQL LOGIN FAILED!

Posted: Mon Feb 03, 2014 11:59 am
by abrist
arthurroda wrote: Is there another way to know why we encountered the error? A misconfiguration on some parameters perhaps?
First of all, I mentioned the subscription because of the following warning from your log:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Second, I mentioned that this was not a minimal system because every dependency was already installed. I presume now that it is due to the fact that you uninstalled xi with the uninstall script.
Are you behind a proxy?
Is this server ipv6 only?