From db0ffb7a05d74217d908a825c1f0178319e6c67b Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Wed, 25 Jan 2017 10:48:19 +0000 Subject: [PATCH] Throw another unknown if we can't fetch the data elsewhere for some reason --- check_esxi_hardware.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check_esxi_hardware.py b/check_esxi_hardware.py index 6a7400a..5213db4 100755 --- a/check_esxi_hardware.py +++ b/check_esxi_hardware.py @@ -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: