1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-25 03:43:49 +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) sys.exit (ExitUnknown)
else: else:
verboseoutput("Unknown CIM Error: %s" % args) 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: except pywbem.cim_http.AuthError as arg:
verboseoutput("Global exit set to UNKNOWN") verboseoutput("Global exit set to UNKNOWN")
GlobalStatus = ExitUnknown GlobalStatus = ExitUnknown
@ -773,6 +776,9 @@ for classe in ClassesToCheck :
sys.exit (ExitUnknown) sys.exit (ExitUnknown)
else: else:
verboseoutput("Unknown CIM Error: %s" % args) 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: except pywbem.cim_http.AuthError as arg:
verboseoutput("Global exit set to UNKNOWN") verboseoutput("Global exit set to UNKNOWN")
GlobalStatus = ExitUnknown GlobalStatus = ExitUnknown