Failure in connecting a distributed Site / "temporary failure in name resolution"

I have a small problem in connecting my main site with a remote-site and overwriting the montioring.
When i try to log in to the remote site as part of the process to copy the monitoring data, then this appears:

Internal error: HTTPConnectionPool(host=‘checkmk-test-backup’, port=80): Max retries exceeded with url: /remote/check_mk/login.py (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f4fa1e76dc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
Traceback (most recent call last):
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connection.py”, line 174, in _new_conn
conn = connection.create_connection(
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/util/connection.py”, line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/omd/sites/monitoring/lib/python3.9/socket.py”, line 954, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 699, in urlopen
httplib_response = self._make_request(
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connection.py”, line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File “/omd/sites/monitoring/lib/python3.9/http/client.py”, line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/omd/sites/monitoring/lib/python3.9/http/client.py”, line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/omd/sites/monitoring/lib/python3.9/http/client.py”, line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/omd/sites/monitoring/lib/python3.9/http/client.py”, line 1040, in _send_output
self.send(msg)
File “/omd/sites/monitoring/lib/python3.9/http/client.py”, line 980, in send
self.connect()
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connection.py”, line 205, in connect
conn = self._new_conn()
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connection.py”, line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4fa1e76dc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/omd/sites/monitoring/lib/python3.9/site-packages/requests/adapters.py”, line 489, in send
resp = conn.urlopen(
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 755, in urlopen
retries = retries.increment(
File “/omd/sites/monitoring/lib/python3.9/site-packages/urllib3/util/retry.py”, line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘checkmk-test-backup’, port=80): Max retries exceeded with url: /remote/check_mk/login.py (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f4fa1e76dc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/omd/sites/monitoring/lib/python3/cmk/gui/wato/pages/sites.py”, line 657, in _action_login
secret = do_site_login(login_id, name, passwd)
File “/omd/sites/monitoring/lib/python3/cmk/gui/watolib/automations.py”, line 454, in do_site_login
response = get_url(
File “/omd/sites/monitoring/lib/python3/cmk/gui/watolib/automations.py”, line 427, in get_url
return get_url_raw(url, insecure, auth, data, files, timeout).text
File “/omd/sites/monitoring/lib/python3/cmk/gui/watolib/automations.py”, line 359, in get_url_raw
response = requests.post(
File “/omd/sites/monitoring/lib/python3.9/site-packages/requests/api.py”, line 115, in post
return request(“post”, url, data=data, json=json, **kwargs)
File “/omd/sites/monitoring/lib/python3.9/site-packages/requests/api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
File “/omd/sites/monitoring/lib/python3.9/site-packages/requests/sessions.py”, line 587, in request
resp = self.send(prep, **send_kwargs)
File “/omd/sites/monitoring/lib/python3.9/site-packages/requests/sessions.py”, line 701, in send
r = adapter.send(request, **kwargs)
File “/omd/sites/monitoring/lib/python3.9/site-packages/requests/adapters.py”, line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘checkmk-test-backup’, port=80): Max retries exceeded with url: /remote/check_mk/login.py (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f4fa1e76dc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))

Can somebody help me with this? The name of the remote-site is correct and the URL´s should also all be correctly entered.

Did you check your DNS? If you have problems with your name resolution, user /etc/hasts as backup or use the IP address in distribution setup.

Rg, Christian

Our DNS has the right config and i did use the right IP-Address when connecting in setup.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.