mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2026-02-05 22:55:17 +01:00
SPaG
This commit is contained in:
@@ -808,11 +808,11 @@ for classe in ClassesToCheck :
|
|||||||
30 : ExitCritical, # Non-recoverable Error
|
30 : ExitCritical, # Non-recoverable Error
|
||||||
}[elementStatus]
|
}[elementStatus]
|
||||||
if (interpretStatus == ExitCritical) :
|
if (interpretStatus == ExitCritical) :
|
||||||
verboseoutput("GLobal exit set to CRITICAL")
|
verboseoutput("Global exit set to CRITICAL")
|
||||||
GlobalStatus = ExitCritical
|
GlobalStatus = ExitCritical
|
||||||
ExitMsg += " CRITICAL : %s " % elementNameValue
|
ExitMsg += " CRITICAL : %s " % elementNameValue
|
||||||
if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :
|
if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :
|
||||||
verboseoutput("GLobal exit set to WARNING")
|
verboseoutput("Global exit set to WARNING")
|
||||||
GlobalStatus = ExitWarning
|
GlobalStatus = ExitWarning
|
||||||
ExitMsg += " WARNING : %s " % elementNameValue
|
ExitMsg += " WARNING : %s " % elementNameValue
|
||||||
# Added the following for when GlobalStatus is ExitCritical and a warning is detected
|
# Added the following for when GlobalStatus is ExitCritical and a warning is detected
|
||||||
@@ -863,7 +863,7 @@ for classe in ClassesToCheck :
|
|||||||
GlobalStatus = ExitCritical
|
GlobalStatus = ExitCritical
|
||||||
ExitMsg += " CRITICAL : %s " % elementNameValue
|
ExitMsg += " CRITICAL : %s " % elementNameValue
|
||||||
if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :
|
if (interpretStatus == ExitWarning and GlobalStatus != ExitCritical) :
|
||||||
verboseoutput("GLobal exit set to WARNING")
|
verboseoutput("Global exit set to WARNING")
|
||||||
GlobalStatus = ExitWarning
|
GlobalStatus = ExitWarning
|
||||||
ExitMsg += " WARNING : %s " % elementNameValue
|
ExitMsg += " WARNING : %s " % elementNameValue
|
||||||
# Added same logic as in 20100702 here, otherwise Dell servers would return UNKNOWN instead of OK
|
# Added same logic as in 20100702 here, otherwise Dell servers would return UNKNOWN instead of OK
|
||||||
|
|||||||
Reference in New Issue
Block a user