Page 4 of 5

Re: INSTALLATION ERROR

Posted: Fri Jul 03, 2015 11:34 pm
by 1faizankhan
Password contain !@# special character does it make any difference?
http_proxy=http://fn661091:******@mwgprod.gac.gulf ... 168.0.0/16 # Hosts to exclude

@ is a 5th last character in the password.

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 9:23 am
by jdalrymple
It shouldn't - if it does that's the business of your proxy administrator, not the Linux box.

Did you do as lmiltchev said and split the proxy definition line?
lmiltchev wrote:This line in the "/etc/wgetrc" :
should be split into two lines.

Change it to:

Code: Select all

http_proxy=http://fn661091:******@mwgprod.gac.gulfaero.com:9090/
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
and try running the installer again.

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 11:47 am
by 1faizankhan
Yes I did getting same error.
/bin/cat check_mysql_health.pl | /bin/grep -v "^use Nagios" | /bin/grep -v "^my %ERROR" | /bin/gawk -f ./subst >> check_mysql_health
chmod +x check_mysql_health
make[1]: Leaving directory `/nas/home/fn661091/software/nagios/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
Making all in t
make[1]: Entering directory `/nas/home/fn661091/software/nagios/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/nas/home/fn661091/software/nagios/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Entering directory `/nas/home/fn661091/software/nagios/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/nas/home/fn661091/software/nagios/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
Extra Plugins installed OK
Subcomponent 'extraplugins' installed OK
Copying apache configuration file...
Creating web directory...
Copying files...
Cleaning up...
Restarting apache...
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Nagios Mobile Install Complete!
Nagios Mobile installed OK
Subcomponent 'nagiosmobile' installed OK
Installing Webinject...
Webinject installed OK
Subcomponent 'webinject' installed OK
Installing Ajaxterm...
`/usr/share/ajaxterm/ajaxterm.pyo' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyo'
`/usr/share/ajaxterm/ajaxterm.py' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.py'
`/usr/share/ajaxterm/qweb.pyo' -> `/usr/local/nagios/share/ajaxterm/qweb.pyo'
`/usr/share/ajaxterm/ajaxterm.pyc' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyc'
`/usr/share/ajaxterm/ajaxterm.css' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.css'
`/usr/share/ajaxterm/ajaxterm.html' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.html'
`/usr/share/ajaxterm/qweb.pyc' -> `/usr/local/nagios/share/ajaxterm/qweb.pyc'
`/usr/share/ajaxterm/qweb.py' -> `/usr/local/nagios/share/ajaxterm/qweb.py'
`/usr/share/ajaxterm/ajaxterm.js' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.js'
`/usr/share/ajaxterm/sarissa_dhtml.js' -> `/usr/local/nagios/share/ajaxterm/sarissa_dhtml.js'
`/usr/share/ajaxterm/sarissa.js' -> `/usr/local/nagios/share/ajaxterm/sarissa.js'
CHECK1: 2
CHECK2: 0
It appears as though Ajaxterm is already configured, so we'll skip that step.
Subcomponent 'ajaxterm' installed OK
Installing wkhtmltopdf and wkhtmltoimage...
Error parsing proxy URL http://fn661091:********@mwgprod.gac.gulfaero.com:9090/: Invalid host name.
ERROR: Subcomponent 'wkhtmlx' installation failed - exiting.
Subcomponents installation failed - exiting
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: './A-subcomponents'
[root@RHELPOC63 nagiosxi]#
cat /etc/wgetrc
http_proxy=http://fn661091:********@mwgprod.gac.gulfaero.com:9090/
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
[root@RHELPOC63 nagiosxi]#

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 12:13 pm
by lmiltchev
Password contain !@# special character does it make any difference?
Try escaping the special characters in the password with a backslash as described here:
http://support.nagios.com/wiki/index.ph ... th_Proxies

If this doesn't help, run the following commands and show the output:

Code: Select all

cat /etc/hosts
hostname -i
hostname -f
nslookup mwgprod.gac.gulfaero.com

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 1:18 pm
by 1faizankhan
[root@RHELPOC63 ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
10.75.163.45 redhat.gac.gulfaero.com redhat
[root@RHELPOC63 ~]# hostname -i
134.216.160.51
[root@RHELPOC63 ~]# hostname -f
RHELPOC63.gac.gulfaero.com
[root@RHELPOC63 ~]# nslookup mwgprod.gac.gulfaero.com
Server: 134.216.177.242
Address: 134.216.177.242#53

Name: mwgprod.gac.gulfaero.com
Address: 134.216.99.95
Name: mwgprod.gac.gulfaero.com
Address: 134.216.99.94
Name: mwgprod.gac.gulfaero.com
Address: 134.216.99.92

[root@RHELPOC63 ~]#

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 4:23 pm
by tgriep
Could you run the following and post the results back here?

Code: Select all

wget -d http://assets.nagios.com

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 5:27 pm
by 1faizankhan
[root@RHELPOC63 ~]# wget -d http://assets.nagios.com
DEBUG output created by Wget 1.12 on linux-gnu.

Error parsing proxy URL http://fn661091:example@!#[email protected]:9090: Invalid host name.
[root@RHELPOC63 ~]#

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 5:39 pm
by 1faizankhan
If I will take out special characters from my password getting this error.

[root@RHELPOC63 ~]# wget -d http://assets.nagios.com
DEBUG output created by Wget 1.12 on linux-gnu.

--2015-07-06 18:36:17-- http://assets.nagios.com/
Resolving mwgprod.gac.gulfaero.com... 134.216.99.94, 134.216.99.92, 134.216.99.95
Caching mwgprod.gac.gulfaero.com => 134.216.99.94 134.216.99.92 134.216.99.95
Connecting to mwgprod.gac.gulfaero.com|134.216.99.94|:9090... connected.
Created socket 3.
Releasing 0x0000000000befd70 (new refcount 1).

---request begin---
GET http://assets.nagios.com/ HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: assets.nagios.com
Proxy-Authorization: Basic Zm42NjEwOTE6cXdlbW5iMDk4

---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.0 407 authenticationrequired
Date: Mon, 06 Jul 2015 22:36:16 GMT
Content-Type: text/html
Cache-Control: no-cache
Content-Length: 3114
Proxy-Connection: Close
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="McAfee Web Gateway"

---response end---
407 authenticationrequired
Closed fd 3
2015-07-06 18:36:17 ERROR 407: authenticationrequired.

May be special characters causing issue specially @

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 6:43 pm
by 1faizankhan
After taking out @ from my password getting port number error.
Looks like failing on port number.

[root@RHELPOC63 ~]# service iptables status
iptables: Firewall is not running.
[root@RHELPOC63 ~]# wget -d http://assets.nagios.com
DEBUG output created by Wget 1.12 on linux-gnu.

Error parsing proxy URL http://fn661091:[email protected] ... .com:9090/: Bad port number.
[root@RHELPOC63 ~]#

Re: INSTALLATION ERROR

Posted: Mon Jul 06, 2015 7:40 pm
by Box293
What I thing is required is the following in the /etc/wgetrc file:

Code: Select all

http_proxy=http://mwgprod.gac.gulfaero.com:9090/
proxy_user=fn661091
proxy_password=pass-example