Need help In Configuring Check_esxi_hardware.py

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

Need help In Configuring Check_esxi_hardware.py

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Need help In Configuring Check_esxi_hardware.py

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

Re: Need help In Configuring Check_esxi_hardware.py

Post by sh.shekhar89 »

Thanks Everyone, i fixed the issue.

Thanks a lot
Locked