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

Throw another unknown if we can't fetch the data elsewhere for some reason

This commit is contained in:
Peter Newman 2017-01-25 10:48:19 +00:00 committed by GitHub
parent 3566f03ecb
commit db0ffb7a05

View File

@ -675,6 +675,9 @@ for classe in ClassesToCheck :
if ( args[1].find('Socket error') >= 0 ): if ( args[1].find('Socket error') >= 0 ):
print "UNKNOWN: %s" %args print "UNKNOWN: %s" %args
sys.exit (ExitUnknown) sys.exit (ExitUnknown)
elif ( args[1].find('ThreadPool --- Failed to enqueue request') >= 0 ):
print "UNKNOWN: %s" %args
sys.exit (ExitUnknown)
else: else:
verboseoutput("Unknown CIM Error: %s" % args) verboseoutput("Unknown CIM Error: %s" % args)
except pywbem.cim_http.AuthError,arg: except pywbem.cim_http.AuthError,arg: