Page 1 of 1
Updates via proxy not working
Posted: Thu May 02, 2019 10:11 am
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
Re: Updates via proxy not working
Posted: Thu May 02, 2019 12:24 pm
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.
Re: Updates via proxy not working
Posted: Mon May 06, 2019 7:40 am
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
Re: Updates via proxy not working
Posted: Mon May 06, 2019 10:30 am
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
Re: Updates via proxy not working
Posted: Fri Jun 28, 2019 10:18 am
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
Re: Updates via proxy not working
Posted: Fri Jun 28, 2019 12:56 pm
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:
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 $?
Re: Updates via proxy not working
Posted: Wed Jul 31, 2019 8:05 am
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?
Re: Updates via proxy not working
Posted: Wed Jul 31, 2019 10:10 am
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?
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.