NagiosXI install
NagiosXI install
-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'
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
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
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'
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
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.
"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.
Re: NagiosXI install
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.
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
You should also have your proxy declared in /etc/wgetrc:
Also, a user reported that the following was required in his environment:
Code: Select all
http_proxy=http://myname:mypass@someproxyserver:port/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.
"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.
Re: NagiosXI install
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
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:
If you are on minimal, what is the output of umask:
Code: Select all
umask
Re: NagiosXI install
We are using the minimal install of RH.
umask is set to 0022.
Thanks.
umask is set to 0022.
Thanks.