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