mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2024-11-21 18:03:47 +01:00
Throw another unknown if we can't fetch the data elsewhere for some reason
This commit is contained in:
parent
3566f03ecb
commit
db0ffb7a05
@ -646,7 +646,7 @@ if vendor=='auto':
|
||||
sys.exit (ExitUnknown)
|
||||
elif ( args[1].find('ThreadPool --- Failed to enqueue request') >= 0 ):
|
||||
print "UNKNOWN: %s" %args
|
||||
sys.exit (ExitUnknown)
|
||||
sys.exit (ExitUnknown)
|
||||
else:
|
||||
verboseoutput("Unknown CIM Error: %s" % args)
|
||||
except pywbem.cim_http.AuthError,arg:
|
||||
@ -675,6 +675,9 @@ for classe in ClassesToCheck :
|
||||
if ( args[1].find('Socket error') >= 0 ):
|
||||
print "UNKNOWN: %s" %args
|
||||
sys.exit (ExitUnknown)
|
||||
elif ( args[1].find('ThreadPool --- Failed to enqueue request') >= 0 ):
|
||||
print "UNKNOWN: %s" %args
|
||||
sys.exit (ExitUnknown)
|
||||
else:
|
||||
verboseoutput("Unknown CIM Error: %s" % args)
|
||||
except pywbem.cim_http.AuthError,arg:
|
||||
|
Loading…
Reference in New Issue
Block a user