1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-22 02:13:46 +01:00

Merge pull request #6 from Napsty/dev

Add Add-in Card 4 PEM Presence 0: Connected to ignore list
This commit is contained in:
Napsty 2014-03-19 10:14:39 +01:00
commit efd8570a24

View File

@ -205,7 +205,7 @@
#@--------------------------------------------------- #@---------------------------------------------------
#@ Date : 20140319 #@ Date : 20140319
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com) #@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
#@ Reason : Another workaround for Dell systems "System Board 1 VGA Cable Pres 0: Connected" #@ Reason : Another two workarounds for Dell systems (VGA Cable Pres 0, Add-in Card 4 PEM Presence 0)
#@--------------------------------------------------- #@---------------------------------------------------
import sys import sys
@ -762,6 +762,7 @@ for classe in ClassesToCheck :
ignore_list.append("System Board 1 Riser Config Err 0: Connected") ignore_list.append("System Board 1 Riser Config Err 0: Connected")
ignore_list.append("System Board 1 LCD Cable Pres 0: Connected") ignore_list.append("System Board 1 LCD Cable Pres 0: Connected")
ignore_list.append("System Board 1 VGA Cable Pres 0: Connected") ignore_list.append("System Board 1 VGA Cable Pres 0: Connected")
ignore_list.append("Add-in Card 4 PEM Presence 0: Connected")
if instance['OperationalStatus'] is not None : if instance['OperationalStatus'] is not None :
elementStatus = instance['OperationalStatus'][0] elementStatus = instance['OperationalStatus'][0]
verboseoutput(" Element Op Status = %d" % elementStatus) verboseoutput(" Element Op Status = %d" % elementStatus)