Update to Nagios xi 2011R3.2 through proxy

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
SDK
Posts: 45
Joined: Wed Mar 21, 2012 4:23 pm

Update to Nagios xi 2011R3.2 through proxy

Post by SDK »

Hello,

the update to the new version doesn't work if the nagios server can access the
internet only through a proxy.

Previous updates worked if yum and wget were configured to use a proxy.

The error:

Code: Select all

Traceback (most recent call last):
  File "./install", line 19, in <module>
    filename , urlobject = urllib.urlretrieve( url )
  File "/usr/lib/python2.6/urllib.py", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.6/urllib.py", line 239, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.6/urllib.py", line 207, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.6/urllib.py", line 346, in open_http
    h.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 739, in send
    self.connect()
  File "/usr/lib/python2.6/httplib.py", line 720, in connect
    self.timeout)
  File "/usr/lib/python2.6/socket.py", line 567, in create_connection
    raise error, msg
IOError: [Errno socket error] [Errno 110] Connection timed out
Here is the code snippet of the install file

Code: Select all

# Download file and retrieve the filename
filename , urlobject = urllib.urlretrieve( url )
Kind regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Update to Nagios xi 2011R3.2 through proxy

Post by scottwilkerson »

I'm somewhat confused, what install files is this?

to upgrade you would normally run

Code: Select all

./upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDK
Posts: 45
Joined: Wed Mar 21, 2012 4:23 pm

Re: Update to Nagios xi 2011R3.2 through proxy

Post by SDK »

Sorry for the missing information.

Of course i executed with ./upgrade.

In the script there is this code bit:

Code: Select all

## 2011R3.2 Updates
if [ "$oldversion" -lt 217 ]; then
	(
		# Install wkhtml
		cd ./subcomponents/wkhtml
		./install
So i mean the ./install file in the wkhtml subfolder.

Regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Update to Nagios xi 2011R3.2 through proxy

Post by scottwilkerson »

I am going to look into adjusting this in future releases, for your current install you can do the following to work around

for 32 bit server

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/components/wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2
tar xjvf wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2
mv -f wkhtmltopdf-i386 /usr/bin/wkhtmltopdf
cat /dev/null > /tmp/nagiosxi/subcomponents/wkhtml/install
cd /tmp/nagiosxi
./upgrade
for 64 bit server

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/components/wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2
tar xjvf wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2
mv -f wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
cat /dev/null > /tmp/nagiosxi/subcomponents/wkhtml/install
cd /tmp/nagiosxi
./upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDK
Posts: 45
Joined: Wed Mar 21, 2012 4:23 pm

Re: Update to Nagios xi 2011R3.2 through proxy

Post by SDK »

Worked perfectly. Thanks alot for the support.

Kind regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Update to Nagios xi 2011R3.2 through proxy

Post by scottwilkerson »

Excellent. We have made changes to the install script for future releases, so you shouldn't have to deal with this if you have wget and yum setup for proxy.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart