NAGIOSQL LOGIN FAILED!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eloisalunar
Posts: 9
Joined: Fri Dec 13, 2013 4:29 am

NAGIOSQL LOGIN FAILED!

Post 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.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NAGIOSQL LOGIN FAILED!

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
arthurroda
Posts: 1
Joined: Mon Feb 03, 2014 5:27 am

Re: NAGIOSQL LOGIN FAILED!

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NAGIOSQL LOGIN FAILED!

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked