NagiosXI install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bddoshi
Posts: 11
Joined: Tue May 21, 2013 1:34 pm

NagiosXI install

Post 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'
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagiosXI install

Post 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
bddoshi
Posts: 11
Joined: Tue May 21, 2013 1:34 pm

Re: NagiosXI install

Post 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'
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosXI install

Post by abrist »

Can you post a copy of your /etc/wgetrc ?
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.
bddoshi
Posts: 11
Joined: Tue May 21, 2013 1:34 pm

Re: NagiosXI install

Post 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.
bddoshi
Posts: 11
Joined: Tue May 21, 2013 1:34 pm

Re: NagiosXI install

Post by bddoshi »

Hi,
Any ideas?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosXI install

Post 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
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.
bddoshi
Posts: 11
Joined: Tue May 21, 2013 1:34 pm

Re: NagiosXI install

Post by bddoshi »

We are not using any proxy, how can I add a proxy server?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagiosXI install

Post 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
bddoshi
Posts: 11
Joined: Tue May 21, 2013 1:34 pm

Re: NagiosXI install

Post by bddoshi »

We are using the minimal install of RH.

umask is set to 0022.

Thanks.
Locked