Updates via proxy not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vipial1
Posts: 7
Joined: Thu Apr 18, 2019 2:43 am

Updates via proxy not working

Post by vipial1 »

Hi,

our nagiosXI is connected to internet via proxy, but updates can not complete
UpdateFail.PNG
It works when connecting nagios to internet directly.

Proxy allows to connect to everywhere.
ProxyConfig.PNG
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Updates via proxy not working

Post by npolovenko »

@vipial1, Please try the manual upgrade instructions from the command line instead:
https://assets.nagios.com/downloads/nag ... ctions.pdf

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
If the upgrade process fails, please upload the /tmp/nagiosxi/upgrade.log file in the ticket.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vipial1
Posts: 7
Joined: Thu Apr 18, 2019 2:43 am

Re: Updates via proxy not working

Post by vipial1 »

Hi and thanks for your reply,

same problem when updating manually:
-It works when nagios is conected to internet directly
-It doesn't work via proxy
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Updates via proxy not working

Post by lmiltchev »

Have you configured the /etc/yum.conf and /etc/wgetrc files according to the instructions in the KB article below?

https://support.nagios.com/kb/article/n ... s-147.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
vipial1
Posts: 7
Joined: Thu Apr 18, 2019 2:43 am

Re: Updates via proxy not working

Post by vipial1 »

Yes, and still no luck. I am checking the traffic in proxy and don't even arrive any request.

yum.conf
yum.rc.PNG
wgetrc
wgetrc.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Updates via proxy not working

Post by lmiltchev »

Is this a http or https proxy? In the /etc/yum.conf, you have http proxy defined. In the /etc/wgetrc, you have both, however I see:
https_proxy = http://xxx:8080/
instead of:
https_proxy = https://xxx:8080/
Does your proxy require authentication (username/password)?

What do you have in the Proxy Address field under the Proxy Configuration page - just an IP address, "http://xxx/" or "https://xxx/"?

Can you run the following commands and show the output?

Code: Select all

export http_proxy='http://xxx:8080/'
wget --spider api.nagios.com
echo $?
Be sure to check out our Knowledgebase for helpful articles and solutions!
vipial1
Posts: 7
Joined: Thu Apr 18, 2019 2:43 am

Re: Updates via proxy not working

Post by vipial1 »

Hi,

it is a http proxy, thats why it is http in all wgetrc fields.
I have also tried setting https on the https_proxy, and still no luck.

Proxy has not authentication.

In the proxy address I had only the IP, but I just tried with http://xxx.xxx.xxx.xxx and same result.

The output for your command (hidding ips):

Code: Select all

[root@nagios ~]# export http_proxy='http://xxx.xxx.xxx.xxx:8080/'
[root@nagios ~]# wget --spider api.nagios.com
Spider mode enabled. Check if remote file exists.
--2019-07-31 14:56:56--  http://api.nagios.com/
Connecting to xxx.xxx.xxx.xxx:8080... connected.
Proxy request sent, awaiting response... 403 Forbidden
Remote file does not exist -- broken link!!!

[root@nagios ~]# echo $?
8
Which ports needs nagios opened to be updated?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Updates via proxy not working

Post by lmiltchev »

Proxy request sent, awaiting response... 403 Forbidden
Remote file does not exist -- broken link!!!
This is definitely an issue with your proxy. Do you have an access to the proxy's server? Can you run the same command from the CLI on the proxy's machine?

Code: Select all

wget --spider api.nagios.com
You should see the following line in the output (if it's working):
Remote file exists and could contain further links,
Which ports needs nagios opened to be updated?
Just 80 and 443 as far as I know, nothing special.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked