A follow up on using zabbix30 on el6 . zabbix 3.0.2 packages for RHEL6.x64 has been pushed out.
I have switched to IUS repository, over webtatic.
I have switched to IUS repository, over webtatic.
public function createURL () {
# reset url for base
if($_SERVER['SERVER_PORT'] == "443") { $url = "https://$_SERVER[HTTP_HOST]"; }
// reverse proxy doing SSL offloading
elseif(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { $url = "https://$_SERVER[SERVER_NAME]"; }
elseif(isset($_SERVER['HTTP_X_SECURE_REQUEST']) && $_SERVER['HTTP_X_SECURE_REQUEST'] == 'true') { $url = "https://$_SERVER[SERVER_NAME]"; }
// custom port
elseif($_SERVER['SERVER_PORT']!="80") { $url = "http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]"; }
// normal http
$_SERVER['HTTP_X_FORWARDED_PROTO'] = "https";
...
File "/usr/lib/python2.6/site-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
[root@fb7a3cd8c69d ~]# vim my_script.pyt
...
context = None
try:
# Disabling SSL certificate verification
context = ssl.SSLContext(ssl.PROTOCOL_SSLv3)
context.verify_mode = ssl.CERT_NONE
except AttributeError:
rget = requests.get
requests.get = lambda obj, *args,**kwargs: rget(obj,verify=False)
requests.packages.urllib3.disable_warnings()
si = SmartConnect(host=args.host,
user=user,
pwd=args.password,
port=int(args.port), sslContext=context)
cat /etc/NetworkManager/system-connections/Auto\ Ethernet ...[ipv4] dns=8.8.8.8;8.8.4.4; dns-search= method=auto ignore-auto-dns=true ...
Alternatively, install and use nmtui
refence:
https://developers.google.com/speed/public-dns/
https://askubuntu.com/questions/708762/redirecting-to-http-domain-error-com
https://www.hogarthuk.com/?q=node/8
As part of your pipeline, you may need to perform browser testing across different platforms/environments. To minimize testing time, it'...