Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cim_operations error #60

Open
tcapacci opened this issue Nov 11, 2021 · 10 comments
Open

cim_operations error #60

tcapacci opened this issue Nov 11, 2021 · 10 comments

Comments

@tcapacci
Copy link

I am using Ubuntu, the srip[t used to work great but since a few months I am getting:

nag@nag01:~# /usr/local/nagios/libexec/check_esxi_hardware.py -H 10.129.175.102 -U root -P Passw0rd!
Traceback (most recent call last):
File "/usr/local/nagios/libexec/check_esxi_hardware.py", line 781, in
except pywbem.cim_operations.CIMError as args:
AttributeError: 'module' object has no attribute 'cim_operations'

@Napsty
Copy link
Owner

Napsty commented Nov 11, 2021

Please run the plugin in verbose mode.
What has changed since it stopped working? OS Upgrade? ESXi upgrade? Python change?

@tcapacci
Copy link
Author

I did a dist-upgrade on my Ubuntu server

The verbose mode is:

/usr/local/nagios/libexec/check_esxi_hardware.py -H 10.129.175.102 -U root -P Dell123! -v
20211111 15:56:39 LCD Status: True
20211111 15:56:39 Chassis Intrusion Status: True
20211111 15:56:39 Connection to https://10.129.175.102
20211111 15:56:39 Found pywbem version 1.1.2
20211111 15:56:39 Check classe OMC_SMASHFirmwareIdentity
Traceback (most recent call last):
File "/usr/local/nagios/libexec/check_esxi_hardware.py", line 781, in
except pywbem.cim_operations.CIMError as args:
AttributeError: 'module' object has no attribute 'cim_operations'

@Napsty
Copy link
Owner

Napsty commented Nov 11, 2021

@tcapacci thx for the quick response. Can you upgrade pywbem to 1.2.0? See my recent successful tests on https://www.claudiokuenzler.com/blog/1110/check_esxi_hardware-esxi-compatibility-matrix-list

@tcapacci
Copy link
Author

Thanks to you!

Just did but same message

root@remcorpnag01:~# /usr/local/nagios/libexec/check_esxi_hardware.py -H 10.129.175.102 -U root -P Dell123! -v
20211111 16:02:51 LCD Status: True
20211111 16:02:51 Chassis Intrusion Status: True
20211111 16:02:51 Connection to https://10.129.175.102
20211111 16:02:51 Found pywbem version 1.2.0
20211111 16:02:51 Check classe OMC_SMASHFirmwareIdentity
Traceback (most recent call last):
File "/usr/local/nagios/libexec/check_esxi_hardware.py", line 781, in
except pywbem.cim_operations.CIMError as args:
AttributeError: 'module' object has no attribute 'cim_operations'

@Napsty
Copy link
Owner

Napsty commented Nov 11, 2021

OK, weird. What happens if you use -V dell as an argument?

@tcapacci
Copy link
Author

same message

@Napsty
Copy link
Owner

Napsty commented Nov 12, 2021

Running out of ideas here... Can you try to remove and (re-) install the OMSA bundle? Certain versions are known to cause problems (see FAQ). You may also have to try the custom DELL ESXi ISO to see if it works there.
Another workaround is to disable (comment) the OMC_SMASHFirmwareIdentity class in the plugin (around line 304): https://github.com/Napsty/check_esxi_hardware/blob/master/check_esxi_hardware.py#L304. This way you can rule out a general problem of the CIM server.

@lasag-2511
Copy link

lasag-2511 commented Sep 9, 2022

did disabling OMC_SMASHFirmwareIdentity worked ? i look forward to suggestions

@lasag-2511
Copy link

any update

@daCaPo
Copy link

daCaPo commented Dec 6, 2022

I manged to work around this bug using

sudo python2 -m pip install --upgrade pywbem==0.8.4

on raspbian bullseye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants