Open psmartins opened 6 years ago
Note,
A self-signed certificate is being used on https
Hi, I dont see error in output. This is full output? https://letsencrypt.org - issues free ssl certificates.
See below:
server:/opt/zabbix/mapas_wheatermap_zabbix/mapcfgs # ../weathermap.py -s Panorama_do_Trafico -z https://127.0.0.1 -l user -p password Traceback (most recent call last): File "/usr/lib64/python3.4/urllib/request.py", line 1183, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/lib64/python3.4/http/client.py", line 1137, in request self._send_request(method, url, body, headers) File "/usr/lib64/python3.4/http/client.py", line 1182, in _send_request self.endheaders(body) File "/usr/lib64/python3.4/http/client.py", line 1133, in endheaders self._send_output(message_body) File "/usr/lib64/python3.4/http/client.py", line 963, in _send_output self.send(msg) File "/usr/lib64/python3.4/http/client.py", line 898, in send self.connect() File "/usr/lib64/python3.4/http/client.py", line 1279, in connect super().connect() File "/usr/lib64/python3.4/http/client.py", line 871, in connect self.timeout, self.source_address) File "/usr/lib64/python3.4/socket.py", line 498, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/lib64/python3.4/socket.py", line 537, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../weathermap.py", line 121, in
Try wget https://127.0.0.1
It works?
Try replace 127.0.0.1
by localhost
Hello Prototype-X
I still have the problem on my map. Do you have any idea what might be happening? See the error below:
muttley:/opt/zabbix/mapas_wheatermap_zabbix/mapcfgs # ../weathermap.py -s Panorama_do_Trafico_UFU -z https://localhost -l user -p password
Traceback (most recent call last):
File "../weathermap.py", line 121, in
Google.com http error 412 precondition failed
Thank you
Hello Prototype-X.
After I change the frontend from my zabbix to https the map stopped working and in the items in the Template Weathermap the following errors appear:
Value "Traceback (most recent call last): File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 121, in
main ()
File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 118, in main
WeathermapCLI ()
File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 55, in init
self._map_scan ()
File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 70, in _map_scan
scan_map.check_map (self.cfg_path)
File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 341, in check_map
self._compare (old_cfg_path_fn)
File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 345, in _compare
self.cfg_loader_obj = ConfigLoader (old_cfg_path_file)
File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 52, in init
self.load (path_cfg)
File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 63, in load
self.cfg_dict ['zabbix'] ['password'])
File "/opt/zabbix/mapas_wheatermap_zabbix/zabbix.py", line 23, in init
self.zbx_api = ZabbixAPI (url = url, use_authenticate = False, user = login, password = password)
File "/usr/lib/python3.4/site-packages/pyzabbix/api.py", line 156, in init
self._login (user, password)
File "/usr/lib/python3.4/site-packages/pyzabbix/api.py", line 186, in _login
self.auth = self.user.login (user = user, password = password)
File "/usr/lib/python3.4/site-packages/pyzabbix/api.py", line 82, in fn
args or kwargs
File "/usr/lib/python3.4/site-packages/pyzabbix/api.py", line 236, in do_request
res = urlopen (req)
File "/usr/lib/python3.4/site-packages/pyzabbix/api.py", line 107, in inner
res = func (req, context = ctx)
File "/usr/lib/python3.4/site-packages/pyzabbix/api.py", line 118, in urlopen
return urllib2.urlopen (* args, ** kwargs)
File "/usr/lib64/python3.4/urllib/request.py", line 161, in urlopen
return opener.open (url, date, timeout)
File "/usr/lib64/python3.4/urllib/request.py", line 470, in open
response = meth (req, response)
File "/usr/lib64/python3.4/urllib/request.py", line 5
Would you help me ?
Thank you