Hi,
our nagiosXI is connected to internet via proxy, but updates can not complete
It works when connecting nagios to internet directly.
Proxy allows to connect to everywhere.
Updates via proxy not working
Updates via proxy not working
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
@vipial1, Please try the manual upgrade instructions from the command line instead:
https://assets.nagios.com/downloads/nag ... ctions.pdf
If the upgrade process fails, please upload the /tmp/nagiosxi/upgrade.log file in the ticket.
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Updates via proxy not working
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
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
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
https://support.nagios.com/kb/article/n ... s-147.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Updates via proxy not working
Yes, and still no luck. I am checking the traffic in proxy and don't even arrive any request.
yum.conf wgetrc
yum.conf wgetrc
You do not have the required permissions to view the files attached to this post.
Re: Updates via proxy not working
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:
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?
instead of:https_proxy = http://xxx:8080/
Does your proxy require authentication (username/password)?https_proxy = https://xxx:8080/
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!
Re: Updates via proxy not working
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):
Which ports needs nagios opened to be updated?
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
Re: Updates via proxy not working
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?Proxy request sent, awaiting response... 403 Forbidden
Remote file does not exist -- broken link!!!
Code: Select all
wget --spider api.nagios.comRemote file exists and could contain further links,
Just 80 and 443 as far as I know, nothing special.Which ports needs nagios opened to be updated?
Be sure to check out our Knowledgebase for helpful articles and solutions!