Installation failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Installation failed

Post by quental »

Distro: Rhel 5.
64 bits
Manual Installation
-----------------------------------------------------------------------------------------------------------------------------------------------
Hi,

I launch "./fullinstall" , and installation failed with this error:


Nagios XI Installation Log
==========================
DATE: lun mar 4 12:40:07 CET 2013

DISTRO INFO:
RedHatEnterpriseServer
5.9
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R1.6
major=2012
minor=R1.6
releasedate=2013-02-05
release=306

Configuring Yum...
ERROR: unable to read system id.
/usr/lib64/python2.4/site-packages/rhsm/certificate.py:123: DeprecationWarning: Call to deprecated function: __init__
category=DeprecationWarning)
****************************************************************
WARNING: This script will remove existing RPMs installed on this
system, which may result in existing applications being
removed!
****************************************************************
Do you want to continue? [y/N]: RESP: N
Exiting
Yum was not properly prepared - run previous script

any suggestion?
Thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Installation failed

Post by slansing »

It failed because you entered No when it asked you to continue.

WARNING: This script will remove existing RPMs installed on this
system, which may result in existing applications being
removed!
The Nagios XI install script removes the 32bit package versions that it uses and replaced them with 64bit. This offers a safer and cleaner environment to work in. Are you installing this on a fresh system as required? If so this should be of no worry.
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Installation failed

Post by quental »

Hi,

Thank for reply.

Now we have this problem, at this point "E-importnagiosql"

Code: Select all

Running './C-cronjobs'...
Crontabs already configured - skipping.
RESULT=0
Running './D-chkconfigalldaemons'...
Daemons already configured - skipping.
RESULT=0
Running './E-importnagiosql'...
httpd: no process killed
Iniciando httpd:                                           [  OK  ]
Sleeping...
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
Found config files to import - continuing...
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--2013-03-04 17:48:48--  http://localhost/nagiosql/index.php
Resolviendo localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 0 [text/html]
Saving to: `nagiosql.login'

     0K                                                        0,00 =0s

2013-03-04 17:48:48 (0,00 B/s) - `nagiosql.login' saved [0/0]

NAGIOSQL LOGIN FAILED!
ERROR: NagiosQL import appears to have failed - exiting.  (Reason: Import files are still present in /usr/local/nagios/etc/import)
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './E-importnagiosql'
I've configured /etc/yum.conf and /etc/wgetrc with http_proxy and no_proxy values...

any suggestions?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation failed

Post by lmiltchev »

Did you add localhost to "no_proxy=" line?
Be sure to check out our Knowledgebase for helpful articles and solutions!
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Installation failed

Post by quental »

Yes,

yes, this is the value that I have set in /etc/wgetrc:

no_proxy=localhost,127.0.0.0/8,92.168.0.0/16
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Installation failed

Post by slansing »

How many times have you tried to install on this system? Or are you trying to install over an existing installation?
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Installation failed

Post by quental »

Hi,

It is the first installation, in a clean system.
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Installation failed

Post by quental »

the strange thing is that the length is 0, when try to do:

/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--2013-03-04 18:13:04-- http://localhost/nagiosql/index.php
Resolviendo localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 0 [text/html]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation failed

Post by lmiltchev »

Can you post the entire install.log file?

Also, run the following command and show the output:

Code: Select all

ll /usr/local/nagiosxi/scripts | grep nagiosql
Be sure to check out our Knowledgebase for helpful articles and solutions!
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Installation failed

Post by quental »

Hi,

the result:

Code: Select all

ll /usr/local/nagiosxi/scripts | grep nagiosql
-rwxr-xr-x  1 nagios nagios    649 mar  4 16:52 export_nagiosql.sh*
-rwxr-xr-x  1 nagios nagios    429 mar  4 16:52 import_nagiosql.sh*
-rw-r--r--  1 nagios nagios 272372 mar  4 16:52 nagiosql_defaults.sql
-rwxr-xr-x  1 nagios nagios    970 mar  4 16:52 nagiosql_delete_contact.php*
-rwxr-xr-x  1 nagios nagios   2010 mar  4 16:52 nagiosql_delete_host.php*
-rwxr-xr-x  1 nagios nagios    505 mar  4 16:52 nagiosql_delete_object.sh*
-rwxr-xr-x  1 nagios nagios   3118 mar  4 16:52 nagiosql_delete_service.php*
-rwxr-xr-x  1 nagios nagios    993 mar  4 16:52 nagiosql_delete_timeperiod.php*
-rwxr-xr-x  1 nagios nagios   1637 mar  4 16:52 nagiosql_exportall.php*
-rwxr-xr-x  1 nagios nagios   1323 mar  4 16:52 nagiosql_importall.php*
-rwxr-xr-x  1 nagios nagios   1847 mar  4 16:52 nagiosql_login.php*
-rwxr-xr-x  1 nagios nagios   2108 mar  4 16:52 nagiosql_snapshot.sh*
-rwxr-xr-x  1 nagios nagios    258 mar  4 16:52 nagiosql_trim_backups.sh*
You do not have the required permissions to view the files attached to this post.
Locked