Proxy for Update Checking

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Proxy for Update Checking

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Proxy for Update Checking

Post 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?
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Re: Proxy for Update Checking

Post by SeanFromIT »

It's behind a proxy, yes.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Proxy for Update Checking

Post 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.
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Re: Proxy for Update Checking

Post by SeanFromIT »

Yes, and I also export http_proxy in ~/.bash_profile. No dice.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Proxy for Update Checking

Post by rdedon »

Could you try upgrading to the latest 1.4b to see if this resolves?

http://assets.nagios.com/downloads/nagi ... ctions.pdf
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Re: Proxy for Update Checking

Post 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.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Proxy for Update Checking

Post by rdedon »

1.4B is the latest stable version available.
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Re: Proxy for Update Checking

Post by SeanFromIT »

How do I get it? Grab the development tar?
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Proxy for Update Checking

Post by rdedon »

http://assets.nagios.com/downloads/nagi ... .4b.tar.gz
(sorry, I should have included this in my earlier post) :oops:
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
Locked