TOP LEVEL CATEGORIES
EXPLORE
Description:
check_esxi_hardware (formerly known as check_esx_wbem) is an open source monitoring plugin to monitor the hardware of ESXi (and previously ESX) servers. It queries the CIM (Common Information Model) server running on the ESXi server to retrieve the current status of all discovered hardware parts. The plugin can also be used as standalone script to check the hardware. The plugin is written in python and uses the pywbem module. It supports both python2 and python3. See Requirements for more information.
Current Version
20220708
Last Release Date
2022-07-08
Compatible With
Owner
Claudio Kuenzler
Website
https://www.claudiokuenzler.com/monitoring-plugins/check_esxi_hardware.php
Download URL
https://www.claudiokuenzler.com/monitoring-plugins/check_esxi_hardware.py
License
GPL
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Please check out the FAQ: https://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions
Cannot tell for sure, but python 2.4 is very very old. Try at least 2.7.
No, hardware only. Please check the FAQ at https://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions .
It works with 6.5. Please check the FAQ at https://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions .
Please try it with the newest version (20160411 as of today) and the new and stable pywbem 0.8.x.
It works with ESXi 6.x.
Thanks for that hint. This is now solved with the current version 20150626.
This is fixed in version 20150626.
Another user had the same problem and it seemed to be a problem of the ESXi host. After a restart of this particular ESXi host, the check worked again.
This is because vsphere client uses the CIM "HealthState" while the plugin uses "OperationalState" responses for Dell servers. Hence the difference. There is a simple reason to this: In the past, Dell servers rarely submitted good HealthState information. Since more or less 2013, Dell seems to have switched to HealthState. I intend to change this in the future.
Please refer to the FAQ, maybe you'll find your solution: http://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions
Check your resources.cfg and make sure that $USER1$ is actually /usr/lib64/nagios/plugins.
It should be $HOSTADDRESS$ (not percentage signs).
Your CRITICAL comes from this: 20130403 11:54:11 Element Name = Memory 20130403 11:54:11 Element Op Status = 6 20130403 11:54:11 Global exit set to CRITICAL According to the CIM table, exit code 6 means "error". The whole check class seems to be strange on your hardware. Try to run the plugin without CIM_Memory (comment/disable it in the plugin) and see if that helps.
It is actually mandatory to grant the "Administrator" role. This is because of the implementation design of CIM in ESXi. Please see http://www.claudiokuenzler.com/blog/114/check-esxi-wbem-esxi-4.1-user-authorization for more information (also look at the comments).
If there's a difference in Nagios output and the manually launched script output, then you should check your Nagios config.
Looks like a hardware incompatibility issue to me. The Element Operating Status' of the Power Supplies show a value of 0. Here to compare with a Dell server: 20121026 15:51:33 Check classe OMC_PowerSupply 20121026 15:51:34 Element Name = Power Supply 1 20121026 15:51:34 Element Op Status = 2 20121026 15:51:34 Element Name = Power Supply 2 20121026 15:51:34 Element Op Status = 2 If the disconnected Power Supply doesn't show up in vSphere either, then your hardware is definitely not "ready" for the CIM API.
There can be several reasons for this error. Please send me the verbose output (-v parameter). You'll find a contact form on my website.
You can't copy the usage line one to one. You must enter your own information... See examples on the documentation website.
You might have to recompile pywbem to the new python version.
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.