NAGIOSQL LOGIN FAILED
-
eloisalunar
- Posts: 9
- Joined: Fri Dec 13, 2013 4:29 am
NAGIOSQL LOGIN FAILED
Hi Nagios Support,
During the installation of Nagios XI, I received the following error
- PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.1.lin' - /usr/lib64/php/modules/ixed.5.1.lin: cannot open shared object file: No such file or directory in Unknown on line 0
- 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-08 15:36:56-- http://localhost/nagiosql/index.php
Resolving localhost... ::1
Connecting to localhost|::1|:80... failed: Connection refused.
NAGIOSQL LOGIN FAILED!
Can you please help me to troubleshot this issue. I have attached here the install.log file.
During the installation of Nagios XI, I received the following error
- PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.1.lin' - /usr/lib64/php/modules/ixed.5.1.lin: cannot open shared object file: No such file or directory in Unknown on line 0
- 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-08 15:36:56-- http://localhost/nagiosql/index.php
Resolving localhost... ::1
Connecting to localhost|::1|:80... failed: Connection refused.
NAGIOSQL LOGIN FAILED!
Can you please help me to troubleshot this issue. I have attached here the install.log file.
You do not have the required permissions to view the files attached to this post.
Re: NAGIOSQL LOGIN FAILED
What version of php are you running?
Code: Select all
yum list installed | grep phpFormer 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.
"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.
-
eloisalunar
- Posts: 9
- Joined: Fri Dec 13, 2013 4:29 am
Re: NAGIOSQL LOGIN FAILED
Hi -
Here is the result of the command.
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
php.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-cli.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-common.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-gd.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-ldap.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-mbstring.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-optional-6
php-mcrypt.x86_64 5.3.3-3.el6 @epel
php-mssql.x86_64 5.3.3-3.el6 @epel
php-mysql.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-pdo.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-pear.noarch 1:1.9.4-4.el6 @rhel-x86_64-server-6
php-pear-HTML-Template-IT.noarch 1.3.0-2.el5 @/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pgsql.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-snmp.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-optional-6
php-xml.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
Here is the result of the command.
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
php.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-cli.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-common.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-gd.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-ldap.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-mbstring.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-optional-6
php-mcrypt.x86_64 5.3.3-3.el6 @epel
php-mssql.x86_64 5.3.3-3.el6 @epel
php-mysql.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-pdo.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-pear.noarch 1:1.9.4-4.el6 @rhel-x86_64-server-6
php-pear-HTML-Template-IT.noarch 1.3.0-2.el5 @/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pgsql.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
php-snmp.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-optional-6
php-xml.x86_64 5.3.3-27.el6_5 @rhel-x86_64-server-6
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NAGIOSQL LOGIN FAILED
Have you modified the XI installation script to get around redhat registration? Also how are you getting packages without being registered, we depend on quite a few additional packages that generally will not install without having a proper redhat license.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
eloisalunar
- Posts: 9
- Joined: Fri Dec 13, 2013 4:29 am
Re: NAGIOSQL LOGIN FAILED
I did not modify the XI installation script. Is it required to have a proper redhat license to install Nagios XI?
Re: NAGIOSQL LOGIN FAILED
Yes, if you are installing on a redhat system. Otherwise, you can install XI to centos without issue.eloisalunar wrote:Is it required to have a proper redhat license to install Nagios XI?
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.
"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.
Re: NAGIOSQL LOGIN FAILED
Please check if httpd is running
try to execute
telnet localhost 80
try to execute
telnet localhost 80
Re: NAGIOSQL LOGIN FAILED
Have you made anymore progress on this? Was your copy of redhat not registered? If registering is not possible, you could always install to centos instead, as that is free and still supported. . .eloisalunar wrote:I did not modify the XI installation script. Is it required to have a proper redhat license to install Nagios XI?
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.
"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.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: NAGIOSQL LOGIN FAILED
I was having a similar error.
I downloaded and installed the vSphere OVF Template (64-bit) 2102-2R2.7 and have it running in my ESX infrastructure.
I noticed that an update was available. Downloaded the Source Installer 2012R2.8c from Jan 20, 2014.
The installer would not run and appeared to be unable to connect to the NagiosXI page.
This is the error portion of the ./upgrade output:
Installing new XI templates...
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=[user]&tfPassword=[password]' -O nagiosql.login--2014-01-31 11:20:32-- http:/ /localhost/nagiosql/index.php
Resolving proxy.[Domain].com...
Connecting to proxy.[Domain].com|:[Port]... connected.
Proxy request sent, awaiting response... 502 cannotconnect
2014-01-31 11:20:32 ERROR 502: cannotconnect.
NAGIOSQL LOGIN FAILED!
I thought - Shouldn't the upgrade work on an unmodified, newly installed VMware image with no changes made?
Then I read the error more closely and realized that the proxy was not allowing localhost access.
I had to modify the linux environment variables that allow HTTP traffic to use a proxy.
in /etc/profile.d I always create the following 2 files to allow access via proxy for my host.
Note: 'proxy FQDN', 'Domain', and 'Port' should reflect your own installation
(yes, these files have both upper case and lower case of the same thing - it is overkill but works)
cat /etc/profile.d/proxy.csh
#proxy.csh
setenv http_proxy http://[proxy FQDN]:[Port]/
setenv https_proxy http://[proxy FQDN]:[Port]/
setenv ftp_proxy http://[proxy FQDN]:[Port]/
setenv no_proxy .[Domain].com,localhost,127.0.0.1
setenv HTTP_PROXY http://[proxy FQDN]:[Port]/
setenv HTTPS_PROXY http://[proxy FQDN]:[Port]/
setenv FTP_PROXY http://[proxy FQDN]:[Port]/
and
cat /etc/profile.d/proxy.sh
#proxy.sh
export http_proxy=http://[proxy FQDN]:[Port]/
export https_proxy=http://[proxy FQDN]:[Port]/
export ftp_proxy=http://[proxy FQDN]:[Port]/
export no_proxy=.[Domain].com,localhost,127.0.0.1
export HTTP_PROXY=http://[proxy FQDN]:[Port]/
export HTTPS_PROXY=http://[proxy FQDN]:[Port]/
export FTP_PROXY=http://[proxy FQDN]:[Port]/
Now Note the no_proxy lines. I used to have a single item there reflecting my Domain.
Now I have added ,localhost,127.0.0.1 to the line (comma separated)
no_proxy=.[Domain].com
changed to
no_proxy=.[Domain].com,localhost,127.0.0.1
Prior to doing this, I could not upgrade my fresh install with the latest version of Source Installer.
I hope this posting saves other folks from having the same problem.
Thanks.
Steve B
I downloaded and installed the vSphere OVF Template (64-bit) 2102-2R2.7 and have it running in my ESX infrastructure.
I noticed that an update was available. Downloaded the Source Installer 2012R2.8c from Jan 20, 2014.
The installer would not run and appeared to be unable to connect to the NagiosXI page.
This is the error portion of the ./upgrade output:
Installing new XI templates...
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=[user]&tfPassword=[password]' -O nagiosql.login--2014-01-31 11:20:32-- http:/ /localhost/nagiosql/index.php
Resolving proxy.[Domain].com...
Connecting to proxy.[Domain].com|:[Port]... connected.
Proxy request sent, awaiting response... 502 cannotconnect
2014-01-31 11:20:32 ERROR 502: cannotconnect.
NAGIOSQL LOGIN FAILED!
I thought - Shouldn't the upgrade work on an unmodified, newly installed VMware image with no changes made?
Then I read the error more closely and realized that the proxy was not allowing localhost access.
I had to modify the linux environment variables that allow HTTP traffic to use a proxy.
in /etc/profile.d I always create the following 2 files to allow access via proxy for my host.
Note: 'proxy FQDN', 'Domain', and 'Port' should reflect your own installation
(yes, these files have both upper case and lower case of the same thing - it is overkill but works)
cat /etc/profile.d/proxy.csh
#proxy.csh
setenv http_proxy http://[proxy FQDN]:[Port]/
setenv https_proxy http://[proxy FQDN]:[Port]/
setenv ftp_proxy http://[proxy FQDN]:[Port]/
setenv no_proxy .[Domain].com,localhost,127.0.0.1
setenv HTTP_PROXY http://[proxy FQDN]:[Port]/
setenv HTTPS_PROXY http://[proxy FQDN]:[Port]/
setenv FTP_PROXY http://[proxy FQDN]:[Port]/
and
cat /etc/profile.d/proxy.sh
#proxy.sh
export http_proxy=http://[proxy FQDN]:[Port]/
export https_proxy=http://[proxy FQDN]:[Port]/
export ftp_proxy=http://[proxy FQDN]:[Port]/
export no_proxy=.[Domain].com,localhost,127.0.0.1
export HTTP_PROXY=http://[proxy FQDN]:[Port]/
export HTTPS_PROXY=http://[proxy FQDN]:[Port]/
export FTP_PROXY=http://[proxy FQDN]:[Port]/
Now Note the no_proxy lines. I used to have a single item there reflecting my Domain.
Now I have added ,localhost,127.0.0.1 to the line (comma separated)
no_proxy=.[Domain].com
changed to
no_proxy=.[Domain].com,localhost,127.0.0.1
Prior to doing this, I could not upgrade my fresh install with the latest version of Source Installer.
I hope this posting saves other folks from having the same problem.
Thanks.
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NAGIOSQL LOGIN FAILED
Steve, it looks like you have not configured wget for your internal proxy settings as we suggest. Take a look at the documentation link below and if you continue to have issues please open a thread specific to your issue.
http://support.nagios.com/wiki/index.ph ... th_Proxies
http://support.nagios.com/wiki/index.ph ... th_Proxies
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.