1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-22 02:13:46 +01:00

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

This commit is contained in:
Napsty 2020-06-05 14:50:32 +02:00
parent a52c6a0b6c
commit 3186d26184

View File

@ -743,8 +743,9 @@ if vendor=='auto':
else: else:
verboseoutput("Unknown CIM Error: %s" % args) verboseoutput("Unknown CIM Error: %s" % args)
except pywbem._exceptions.ConnectionError as args: except pywbem._exceptions.ConnectionError as args:
GlobalStatus = ExitUnknown
print("UNKNOWN: {}".format(args)) print("UNKNOWN: {}".format(args))
sys.exit (ExitUnknown) sys.exit (GlobalStatus)
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
@ -777,8 +778,9 @@ for classe in ClassesToCheck :
else: else:
verboseoutput("Unknown CIM Error: %s" % args) verboseoutput("Unknown CIM Error: %s" % args)
except pywbem._exceptions.ConnectionError as args: except pywbem._exceptions.ConnectionError as args:
GlobalStatus = ExitUnknown
print("UNKNOWN: {}".format(args)) print("UNKNOWN: {}".format(args))
sys.exit (ExitUnknown) sys.exit (GlobalStatus)
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