Socket error: [Errno 11004] getaddrinfo failed

This forum supports the ESX Host Health Monitor plugin. When posting post screenshots of issues and any script and command logs listed in the probe consoles.
Post Reply
User avatar
Cubert
Posts: 1518
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Socket error: [Errno 11004] getaddrinfo failed

Post by Cubert »

The following error is due to the PYWBEM library having issues resolving host names. Not sure why it can't resolve a host name, we have seen this where when probes are doing 2 or more ESX hosts the first will resolve fine but the second and third, etc will fail with this error.

The fix was to use IP addresses for all ESX hosts at location.

Code: Select all

Parameters: cmd.exe!!! /c "C:\Python27\Python.exe -W ignore C:\Python27\check_esxi
Output: Traceback (most recent call last):
  File "C:\Python27\check_esxi_hardware.py", line 669, in <module>
    instance_list = wbemclient.EnumerateInstances(classe)
  File "C:\Python27\lib\site-packages\pywbem-0.10.0-py2.7.egg\pywbem\cim_operations.py", line 1585, in EnumerateInstances
    **extra)
  File "C:\Python27\lib\site-packages\pywbem-0.10.0-py2.7.egg\pywbem\cim_operations.py", line 914, in _imethodcall
    recorder=self.operation_recorder)
  File "C:\Python27\lib\site-packages\pywbem-0.10.0-py2.7.egg\pywbem\cim_http.py", line 768, in wbem_request
    raise ConnectionError("Socket error: %s" % exc)
pywbem.exceptions.ConnectionError: Socket error: [Errno 11004] getaddrinfo failed

Post Reply