check_esxi_hardware.py and Centos 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tentaclefi
Posts: 3
Joined: Thu Aug 15, 2013 5:07 am

check_esxi_hardware.py and Centos 7

Post by tentaclefi »

Hi,

We're migrating our Nagios installation from RHEL6 to Centos7.

Everything else seems to be working fine but I can't get ESXi hardware monitoring to work.

From command line everything works on RHEL6:

On Centos7 output says UNKNOWN

* Python is 2.6 on RHEL6 and 2.7 on Centos7.
* PyWBEM is 0.7 on both servers, though there is minor version change
* check_esxi_hardware.py is latest version on both servers (http://www.claudiokuenzler.com/nagios-p ... rdware.php)
* Nagios version on both servers Nagios XI 2014R2.6

------------

There has been problems with PyWBEM:

http://www.claudiokuenzler.com/blog/308 ... -questions

Q: After an update of the pywbem package the plugin doesnt work anymore. The following output is shown in verbose mode:

Unknown CIM Error: (0, 'SSL error: certificate verify failed')

A: This was seen in SLES 11 SP3 after an update of the package python-pywbem from 0.7-6.13 to 0.7-6.22. After reverting to the older version, the plugin worked again.

Update September 9th 2014: This error will be fixed in a future release of check_esxi_hardware.py, but it depends on the release of the new pywbem upstream version.
See https://github.com/Napsty/check_esxi_hardware/issues/7.

------------

I've tried manually installing PyWBEM 0.7 and 0.8 from Sourceforge, no effect.

Any ideas how to get this script working?

Any other suggestions are welcome too. Anything goes, we just have to get this running somehow.

Verbose output looks like this:

[root@nagios]# ./check_esxi_hardware.py -H IP -U root -P password -V hp -v

20150312 09:56:29 Connection to https://XX.XX.XX.XX
20150312 09:56:29 Check classe OMC_SMASHFirmwareIdentity
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_Chassis
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_Card
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_ComputerSystem
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_NumericSensor
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_Memory
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_Processor
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe CIM_RecordLog
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe OMC_DiscreteSensor
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe OMC_Fan
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe OMC_PowerSupply
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe VMware_StorageExtent
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe VMware_Controller
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe VMware_StorageVolume
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe VMware_Battery
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
20150312 09:56:29 Check classe VMware_SASSATAPort
20150312 09:56:29 Unknown CIM Error: (0, 'SSL error: certificate verify failed')
UNKNOWN:
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: check_esxi_hardware.py and Centos 7

Post by jdalrymple »

I've attached a patched version of the plugin that should solve your issue.

Let us know
You do not have the required permissions to view the files attached to this post.
tentaclefi
Posts: 3
Joined: Thu Aug 15, 2013 5:07 am

Re: check_esxi_hardware.py and Centos 7

Post by tentaclefi »

Thanks!

Patched version works!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_esxi_hardware.py and Centos 7

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked