Page 1 of 1

Need help In Configuring Check_esxi_hardware.py

Posted: Sat Apr 11, 2015 1:28 pm
by sh.shekhar89
Hello Friends,

Can come one help in configuring check_esxi_hardware.py, i am getting the following error why running the command :
"
[root@test libexec]# ./check_esxi_hardware.py -H 192.168.199.129:5989 -U root -P 123456
Traceback (most recent call last):
File "./check_esxi_hardware.py", line 222, in <module>
import pywbem
File "/usr/lib/python2.6/site-packages/pywbem/__init__.py", line 167, in <module>
from pywbem.cim_http import Error, ConnectionError, AuthError, TimeoutError
ImportError: cannot import name ConnectionError
[root@test libexec]# ./check_esxi_hardware.py -H http://192.168.199.129:5989 -U root -P 0v3r*there
Traceback (most recent call last):
File "./check_esxi_hardware.py", line 222, in <module>
import pywbem
File "/usr/lib/python2.6/site-packages/pywbem/__init__.py", line 167, in <module>
from pywbem.cim_http import Error, ConnectionError, AuthError, TimeoutError
ImportError: cannot import name ConnectionError

Re: Need help In Configuring Check_esxi_hardware.py

Posted: Mon Apr 13, 2015 12:03 pm
by tgriep
Did you install the Python extension pywbem? That is part of the requirements for this plugin.
If you are running Centos or Redhat, run the following to install it.

Code: Select all

yum install pywbem

Re: Need help In Configuring Check_esxi_hardware.py

Posted: Mon Apr 20, 2015 10:46 am
by sh.shekhar89
Thanks Everyone, i fixed the issue.

Thanks a lot