Page 1 of 1

Update to Nagios XI 2011R3.2 through proxy

Posted: Wed Jul 04, 2012 4:47 am
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

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

Posted: Thu Jul 05, 2012 10:54 am
by scottwilkerson
I'm somewhat confused, what install files is this?

to upgrade you would normally run

Code: Select all

./upgrade

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

Posted: Thu Jul 05, 2012 12:36 pm
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

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

Posted: Thu Jul 05, 2012 1:44 pm
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

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

Posted: Fri Jul 06, 2012 8:15 am
by SDK
Worked perfectly. Thanks alot for the support.

Kind regards

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

Posted: Fri Jul 06, 2012 8:48 am
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.