Page 1 of 2

NagiosXI install

Posted: Thu Jul 04, 2013 12:41 pm
by bddoshi
-This is a new RH6 installed on a VMware VM. There is nothing else running on the server. The ./fullinstall script is erroring on E-importnagiosql; more specifically the script /usr/bin/php -q nagiosql_login.php is returning a $ret value of 2.

Running './E-importnagiosql'...
httpd: no process killed
Starting 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...
Entering import_nagiosql.sh
URL: http://localhost/nagiosql/index.php
USERNAME: nagiosxi
PASSWORD: n@gweb
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-07-04 13:01:46-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-07-04 13:01:46-- http://localhost/nagiosql/admin.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/index.php [following]
--2013-07-04 13:01:46-- http://localhost/nagiosql/index.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: “nagiosql.login”

0K ..... 100% 379M=0s

2013-07-04 13:01:46 (379 MB/s) - “nagiosql.login” saved [5259/5259]

2
NAGIOSQL LOGIN FAILED!
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'

Re: NagiosXI install

Posted: Mon Jul 08, 2013 10:21 am
by slansing
Give this a try and let us know:
This is a proxy problem.

It looks like you do not have localhost in the no_proxy section of your /etc/wgetrc

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

Re: NagiosXI install

Posted: Mon Jul 08, 2013 4:05 pm
by bddoshi
Added the no_proxy to /etc/wgetrc. Same error.

Running './E-importnagiosql'...
httpd: no process killed
Starting 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-07-08 16:54:11-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-07-08 16:54:11-- http://localhost/nagiosql/admin.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/index.php [following]
--2013-07-08 16:54:11-- http://localhost/nagiosql/index.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: “nagiosql.login”

0K ..... 100% 423M=0s

2013-07-08 16:54:11 (423 MB/s) - “nagiosql.login” saved [5259/5259]

NAGIOSQL LOGIN FAILED!
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'

Re: NagiosXI install

Posted: Mon Jul 08, 2013 4:44 pm
by abrist
Can you post a copy of your /etc/wgetrc ?

Re: NagiosXI install

Posted: Mon Jul 08, 2013 5:18 pm
by bddoshi
This is all I have in the file -

no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Hosts to exclude from proxying

Rest everything is commented out.

Re: NagiosXI install

Posted: Tue Jul 09, 2013 7:51 am
by bddoshi
Hi,
Any ideas?

Re: NagiosXI install

Posted: Tue Jul 09, 2013 12:01 pm
by abrist
You should also have your proxy declared in /etc/wgetrc:

Code: Select all

http_proxy=http://myname:mypass@someproxyserver:port/
Also, a user reported that the following was required in his environment:
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'

3. Run Nagios installation scripts sequentially

4. Unset system proxy before running E-importnagiosql script

Re: NagiosXI install

Posted: Tue Jul 09, 2013 3:26 pm
by bddoshi
We are not using any proxy, how can I add a proxy server?

Re: NagiosXI install

Posted: Tue Jul 09, 2013 3:37 pm
by slansing
What RH6 distro package are you using? We recommend a minimal installation as any more could include packages which may conflict with those required by nagios thus causing unknown issues. If you can, please use a minimal installation.

If you are on minimal, what is the output of umask:

Code: Select all

umask

Re: NagiosXI install

Posted: Tue Jul 09, 2013 4:37 pm
by bddoshi
We are using the minimal install of RH.

umask is set to 0022.

Thanks.