Page 1 of 2
Installation failed
Posted: Mon Mar 04, 2013 6:43 am
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.
Re: Installation failed
Posted: Mon Mar 04, 2013 10:52 am
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.
Re: Installation failed
Posted: Mon Mar 04, 2013 11:54 am
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?
Re: Installation failed
Posted: Mon Mar 04, 2013 12:09 pm
by lmiltchev
Did you add localhost to "no_proxy=" line?
Re: Installation failed
Posted: Mon Mar 04, 2013 12:12 pm
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
Re: Installation failed
Posted: Mon Mar 04, 2013 12:13 pm
by slansing
How many times have you tried to install on this system? Or are you trying to install over an existing installation?
Re: Installation failed
Posted: Mon Mar 04, 2013 12:16 pm
by quental
Hi,
It is the first installation, in a clean system.
Re: Installation failed
Posted: Mon Mar 04, 2013 12:18 pm
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]
Re: Installation failed
Posted: Mon Mar 04, 2013 1:44 pm
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
Re: Installation failed
Posted: Tue Mar 05, 2013 2:52 am
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*