1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-21 18:03:47 +01:00

Add parameter (-S) for custom SSL/TLS protocol version

This commit is contained in:
Napsty 2020-06-05 14:48:39 +02:00
parent ca6858ab22
commit a52c6a0b6c

View File

@ -742,6 +742,9 @@ if vendor=='auto':
sys.exit (ExitUnknown)
else:
verboseoutput("Unknown CIM Error: %s" % args)
except pywbem._exceptions.ConnectionError as args:
print("UNKNOWN: {}".format(args))
sys.exit (ExitUnknown)
except pywbem.cim_http.AuthError as arg:
verboseoutput("Global exit set to UNKNOWN")
GlobalStatus = ExitUnknown
@ -773,6 +776,9 @@ for classe in ClassesToCheck :
sys.exit (ExitUnknown)
else:
verboseoutput("Unknown CIM Error: %s" % args)
except pywbem._exceptions.ConnectionError as args:
print("UNKNOWN: {}".format(args))
sys.exit (ExitUnknown)
except pywbem.cim_http.AuthError as arg:
verboseoutput("Global exit set to UNKNOWN")
GlobalStatus = ExitUnknown