Hi,
I'm trying to setup this monitoring on our POC zabbix 4.2. I'm having following error while running it manually. Can you please help.
File "/usr/local/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/lib/python3.4/http/client.py", line 1088, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python3.4/http/client.py", line 1126, in _send_request
self.endheaders(body)
File "/usr/local/lib/python3.4/http/client.py", line 1084, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python3.4/http/client.py", line 922, in _send_output
self.send(msg)
File "/usr/local/lib/python3.4/http/client.py", line 857, in send
self.connect()
File "/usr/local/lib/python3.4/http/client.py", line 1223, in connect
super().connect()
File "/usr/local/lib/python3.4/http/client.py", line 834, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python3.4/socket.py", line 512, in create_connection
raise err
File "/usr/local/lib/python3.4/socket.py", line 503, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./citrix.xenserver.py", line 499, in
main(sys.argv[1:])
File "./citrix.xenserver.py", line 482, in main
refreshdatefiles(xenmaster, username, password, maxage)
File "./citrix.xenserver.py", line 296, in refreshdatefiles
values = getStats(xenhosts, username, password, maxage)
File "./citrix.xenserver.py", line 195, in getStats
page = getStatsXML(hostname, username, password, delay)
File "./citrix.xenserver.py", line 186, in getStatsXML
pagehandle = request.urlopen(theurl)
File "/usr/local/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/local/lib/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/local/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.4/urllib/request.py", line 1225, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/local/lib/python3.4/urllib/request.py", line 1184, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>
Regards,
Avinasha
Hi,
I'm trying to setup this monitoring on our POC zabbix 4.2. I'm having following error while running it manually. Can you please help.
File "/usr/local/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/lib/python3.4/http/client.py", line 1088, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python3.4/http/client.py", line 1126, in _send_request
self.endheaders(body)
File "/usr/local/lib/python3.4/http/client.py", line 1084, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python3.4/http/client.py", line 922, in _send_output
self.send(msg)
File "/usr/local/lib/python3.4/http/client.py", line 857, in send
self.connect()
File "/usr/local/lib/python3.4/http/client.py", line 1223, in connect
super().connect()
File "/usr/local/lib/python3.4/http/client.py", line 834, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python3.4/socket.py", line 512, in create_connection
raise err
File "/usr/local/lib/python3.4/socket.py", line 503, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./citrix.xenserver.py", line 499, in
main(sys.argv[1:])
File "./citrix.xenserver.py", line 482, in main
refreshdatefiles(xenmaster, username, password, maxage)
File "./citrix.xenserver.py", line 296, in refreshdatefiles
values = getStats(xenhosts, username, password, maxage)
File "./citrix.xenserver.py", line 195, in getStats
page = getStatsXML(hostname, username, password, delay)
File "./citrix.xenserver.py", line 186, in getStatsXML
pagehandle = request.urlopen(theurl)
File "/usr/local/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/local/lib/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/local/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.4/urllib/request.py", line 1225, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/local/lib/python3.4/urllib/request.py", line 1184, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>
Regards,
Avinasha