mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2024-11-21 18:03:47 +01:00
Output serial number of chassis if a blade server is checked
This commit is contained in:
parent
efd8570a24
commit
629911c8de
@ -207,6 +207,10 @@
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Another two workarounds for Dell systems (VGA Cable Pres 0, Add-in Card 4 PEM Presence 0)
|
||||
#@---------------------------------------------------
|
||||
#@ Date : 20140909
|
||||
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
|
||||
#@ Reason : Output serial number of chassis if a blade server is checked
|
||||
#@---------------------------------------------------
|
||||
|
||||
import sys
|
||||
import time
|
||||
@ -642,6 +646,7 @@ for classe in ClassesToCheck :
|
||||
man = 'Unknown Manufacturer'
|
||||
verboseoutput(" Manufacturer = "+man)
|
||||
SerialNumber = instance[u'SerialNumber']
|
||||
SerialChassis = instance[u'SerialNumber']
|
||||
if SerialNumber:
|
||||
verboseoutput(" SerialNumber = "+SerialNumber)
|
||||
server_info = man + ' '
|
||||
@ -655,6 +660,7 @@ for classe in ClassesToCheck :
|
||||
SerialNumber = instance[u'SerialNumber']
|
||||
if SerialNumber:
|
||||
verboseoutput(" SerialNumber = "+SerialNumber)
|
||||
isblade = "yes"
|
||||
|
||||
# Report detail of Numeric Sensors and generate nagios perfdata
|
||||
|
||||
@ -813,6 +819,10 @@ if (urlise_country != '') :
|
||||
SerialNumber = urlised_serialnumber(vendor,urlise_country,SerialNumber)
|
||||
server_info = urlised_server_info(vendor,urlise_country,server_info)
|
||||
|
||||
# If this is a blade server, also output chassis serial number as additional info
|
||||
if (isblade == "yes") :
|
||||
SerialNumber += " Chassis S/N: %s " % (SerialChassis)
|
||||
|
||||
# Output performance data
|
||||
perf = '|'
|
||||
if perfdata:
|
||||
|
Loading…
Reference in New Issue
Block a user