Page 1 of 1

Nagios XI 2012 Installation error

Posted: Tue Oct 30, 2012 10:24 am
by westernuniv
Hi,

I'm getting the following error when I reinstall the latest version in test server, I'm using redhat 6..

# uname -a
Linux naggyxi.its.uwo.pri 2.6.18-308.4.1.el5PAE #1 SMP Wed Mar 28 02:14:40 EDT 2012 i686 i686 i386 GNU/Linux

#./fullinstall
..
.
===================================================================================================================================================
Found config files to import - continuing...
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies ...://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2012-10-30 10:09:59-- ..
Resolving vogel.uwo.ca... 129.100.74.56
Connecting to vogel.uwo.ca|129.100.74.56|:3128... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2012-10-30 10:09:59 ERROR 503: Service Unavailable.

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'
=======================================================================================================================

Then I've looked at E-importnagiosql and checked the line gave the error,
...
..
# Reconfigure Nagios with initial configuration import
(cd ./nagiosxi/basedir/scripts; ./reconfigure_nagios.sh)

When I manually run the reconfigure_nagios.sh

# cd ./nagiosxi/basedir/scripts; ./reconfigure_nagios.sh
...
/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--2012-10-30 11:15:14-- .....
Resolving vogel.uwo.ca... 129.100.74.56
Connecting to vogel.uwo.ca|129.100.74.56|:3128... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2012-10-30 11:15:15 ERROR 503: Service Unavailable.

NAGIOSQL LOGIN FAILED!

The I checked reconfigure_nagios.sh and found that the error is from import_nagiosql.sh, actually the following php command gave the error ....

/usr/bin/php -q nagiosql_login.php
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--2012-10-30 11:09:37-- http://localhost/nagiosql/index.php
Resolving vogel.uwo.ca... 129.100.74.56
Connecting to vogel.uwo.ca|129.100.74.56|:3128... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2012-10-30 11:09:37 ERROR 503: Service Unavailable.

is the error related to nagiosql db login ?

Thanks

Re: Nagios XI 2012 Installation error

Posted: Tue Oct 30, 2012 10:49 am
by lmiltchev
It seems like a proxy issue. Please, review our wiki post on the use of proxies in Nagios XI:

http://support.nagios.com/wiki/index.ph ... th_Proxies

Hope this helps.

Re: Nagios XI 2012 Installation error

Posted: Tue Oct 30, 2012 11:05 am
by westernuniv
I've configured /etc/yum.conf and /etc/wgetrc with http_proxy , still got the same error.

Thanks

Re: Nagios XI 2012 Installation error

Posted: Tue Oct 30, 2012 11:08 am
by westernuniv
There is another step mentioned there

Here is a proxy install solution reported by forum user TSCAdmin:

1. Before running any installation script install php-pear package manually

2. Set proxy for PHP Pear
pear config-set http_proxy 'http://example.com:8080'

-- I did step 1& 2
3. Run Nagios installation scripts sequentially

--- Do I need to manually install the scripts insted of using fullinstall?

4. Unset system proxy before running E-importnagiosql script

-- here am I supposed to set the below config before running E-importnagiosql script?
pear config-set http_proxy ''

Thanks

Re: Nagios XI 2012 Installation error

Posted: Tue Oct 30, 2012 11:47 am
by westernuniv
Once I have added the n no_proxy=localhost... in the wget config, it works !.
Thanks so much

Re: Nagios XI 2012 Installation error

Posted: Tue Oct 30, 2012 12:15 pm
by lmiltchev
I'm glad to hear that!