Page 1 of 3

Proxy for Update Checking

Posted: Wed Dec 22, 2010 10:47 am
by SeanFromIT
Nagios XI VM image. I'm getting Update Check Problem: Last update check failed error message. I tried setting export http_proxy for root. Are we sure the update check uses the proxy?

Re: Proxy for Update Checking

Posted: Mon Dec 27, 2010 4:50 pm
by mguthrie
I don't actually know off hand how XI checks for the latest version, but if you're running 1.3g that is our latest version.

Have you installed XI under your own proxy?

Re: Proxy for Update Checking

Posted: Fri Feb 04, 2011 10:58 am
by SeanFromIT
It's behind a proxy, yes.

Re: Proxy for Update Checking

Posted: Fri Feb 04, 2011 1:19 pm
by rdedon
Hello SeanFromIT,

just to check, have you done these steps already:
Problems Using Nagios XI With Proxies

We do not officially support Nagios XI when you install and use proxy software that restricts traffic to or from the Nagios XI server. There are several reasons for this. First, Nagios XI requires external access for package installation and updates. Package installation and updates may not work when proxies are used. Additionally, the Nagios XI code makes several internal HTTP calls to the local Nagios XI server to import configuration data, apply configuration changes, process AJAX requests, etc. These functions may not work properly when you deploy a proxy, which would result in a non-functional Nagios XI installation.

There are two things that need to be configured to make XI installation work with a proxy; the yum and wget configurations. Do both of these before starting anything about the installation process.

In /etc/yum.conf :

Code: Select all

 proxy=http://someproxyserver:port/ # Shouldn't need to be quoted, remember the trailing slash
 proxy_username=myname  # The username you authenticate to your proxy with, if applicable
 proxy_password=mypass  # The password you provide to your proxy, if applicable
In /etc/wgetrc :

Code: Select all

 http_proxy=http://myname:mypass@someproxyserver:port/ # All in one string this time
 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
Quoting is not needed (or helpful) in any of these, but if you have special characters in passwords (especially : or @) and are having problems you probably need to escape them with backslashes.

Re: Proxy for Update Checking

Posted: Fri Feb 04, 2011 3:58 pm
by SeanFromIT
Yes, and I also export http_proxy in ~/.bash_profile. No dice.

Re: Proxy for Update Checking

Posted: Fri Feb 04, 2011 5:14 pm
by rdedon
Could you try upgrading to the latest 1.4b to see if this resolves?

http://assets.nagios.com/downloads/nagi ... ctions.pdf

Re: Proxy for Update Checking

Posted: Mon Feb 07, 2011 12:53 pm
by SeanFromIT
Is B development version? I downloaded and installed xi-latest.tar.gz and it got me to 1.4. It appears update check works in this version, since it's telling me 1.4B is available.

Re: Proxy for Update Checking

Posted: Mon Feb 07, 2011 1:53 pm
by rdedon
1.4B is the latest stable version available.

Re: Proxy for Update Checking

Posted: Mon Feb 07, 2011 2:03 pm
by SeanFromIT
How do I get it? Grab the development tar?

Re: Proxy for Update Checking

Posted: Mon Feb 07, 2011 2:22 pm
by rdedon
http://assets.nagios.com/downloads/nagi ... .4b.tar.gz
(sorry, I should have included this in my earlier post) :oops: