From 3727e67609d2f83c457c42ddbc1295874aa5824e Mon Sep 17 00:00:00 2001 From: Claudio Kuenzler Date: Fri, 10 Jul 2015 09:56:25 +0200 Subject: [PATCH] Exit Unknown instead of Critical for non-essential errors --- check_esxi_hardware.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/check_esxi_hardware.py b/check_esxi_hardware.py index 5966f21..7537f66 100755 --- a/check_esxi_hardware.py +++ b/check_esxi_hardware.py @@ -36,6 +36,7 @@ # Copyright (c) 2012 Craig Hart # Copyright (c) 2013 Carl R. Friend # Copyright (c) 2015 Andreas Gottwald +# Copyright (c) 2015 Stanislav German-Evtushenko # # The VMware 4.1 CIM API is documented here: # http://www.vmware.com/support/developer/cim-sdk/4.1/smash/cim_smash_410_prog.pdf @@ -220,6 +221,10 @@ #@ Author : Claudio Kuenzler (www.claudiokuenzler.com) #@ Reason : Added support for patched pywbem 0.7.0 and new version 0.8.0, handle SSL error exception #@--------------------------------------------------- +#@ Date : 20150710 +#@ Author : Stanislav German-Evtushenko +#@ Reason : Exit Unknown instead of Critical for timeouts and auth errors +#@--------------------------------------------------- import sys import time @@ -229,7 +234,7 @@ import string import pkg_resources from optparse import OptionParser,OptionGroup -version = '20150626' +version = '20150710' NS = 'root/cimv2'