Page 1 of 1

Update Components using a Proxy

Posted: Thu Nov 05, 2015 5:09 pm
by mopp
Hello,

the proxy is configured in the web interface (Proxy Configuration).
Managa Components: Check for Updates works and shows every new package. But I cannot update the components
But when I click on install it will not download the package. On the command line I' ve seen a wget process to download the component.
It looks like the proxy configuration is not used with wget

Re: Update Components using a Proxy

Posted: Thu Nov 05, 2015 6:55 pm
by Box293
Which version of Nagios XI are you experiencing this on?

Re: Update Components using a Proxy

Posted: Fri Nov 06, 2015 8:55 am
by mopp
I' m using the latest version Nagios XI 5.2.0
No /etc/wgetrc or other global configuration file is configured. It is the default configuration from the Nagios XI appliance. After that I configured the proxy in the web interface.
And I clicked the install button which triggers the wget download.

Re: Update Components using a Proxy

Posted: Fri Nov 06, 2015 11:14 am
by lmiltchev
Try configuring your proxy by following the steps described on our FAQ wiki page:

https://support.nagios.com/wiki/index.p ... th_Proxies

Let us know if this helped.

Re: Update Components using a Proxy

Posted: Fri Nov 06, 2015 1:12 pm
by mopp
lmiltchev wrote:Try configuring your proxy by following the steps described on our FAQ wiki page:

https://support.nagios.com/wiki/index.p ... th_Proxies

Let us know if this helped.
I' m pretty sure it will work if I add the information to /etc/wgetrc.
If I configure the proxy in the web interface I expect it to work with all functions and not only some functions of the web interface. This way you never know which proxy configuration is used. And configuring the wgetrc might cause problems with some check scripts using the wget command.
My wish would be either to use a php function to download the files, which is already used for checking the component versions.
Or just set the http/https_proxy environment variables based on the nagios web settings before running wget or start wget with the parameter https_proxy (but this will show the proxy password in the process list)

Both should not be to difficult to implement.

Re: Update Components using a Proxy

Posted: Fri Nov 06, 2015 2:06 pm
by rkennedy
For now, the response @lmiltchev posted is the best route.

I understand where you're coming from, and I spoke with the developers about this. They agreed that this would make a good feature, and for that reason I have created the request, ID 6922. It is now on the roadmap!

As a feature request has been created for this, do you mind if I close this thread out?

Re: Update Components using a Proxy

Posted: Fri Nov 06, 2015 5:04 pm
by mopp
Thank you, please close the thread