Random Project

was very troublesome to get to work

here is a guide to set it up working to save you some time (gentoo configuration)
1. Emerge python
2. Download pywbem-0.7.0.tar.gz from http://sourceforge.net/projects/pywbem/files/pywbem/pywbem-0.7/
3. tar –xvf pywbem-0.7.0.tar.gz
4. cd pywbem-0.7.0.tar.gz
5. python setup.py build
6. python setup.py install
7. to test pywbem : $ python
Python 2.6.6 (r266:84292, Sep 14 2011, 06:53:15)
[GCC 4.3.4] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import pywbem
>>>
8. srvmon-Bellakt plugins # ./check_esx_wbem.py https://10.1.1.xxx:5989 root password
if you get the following error (i was testing on a virtual machine)
Traceback (most recent call last):
File “./check_esx_wbem.py”, line 75, in
instance_list = wbemclient.EnumerateInstances(classe)
File “/usr/lib/python2.6/site-packages/pywbem/cim_operations.py”, line 404, in EnumerateInstances
**params)
File “/usr/lib/python2.6/site-packages/pywbem/cim_operations.py”, line 219, in imethodcall
raise CIMError(code, tt[1][‘DESCRIPTION’])
pywbem.cim_operations.CIMError: (6, u’The requested object could not be found’)
9. to remove this error comment out memory (# ‘CIM_Memory’,)