Module: check_mk
Branch: master
Commit: c8538ee449a6d40b8efbe2345d7c4190320daf10
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c8538ee449a6d4…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Mon Sep 23 16:45:05 2013 +0200
minor comment changes
---
checks/apc_symmetra | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/apc_symmetra b/checks/apc_symmetra
index 5a9a5b8..a77554f 100644
--- a/checks/apc_symmetra
+++ b/checks/apc_symmetra
@@ -66,7 +66,7 @@
# ::= { upsAdvTest 4 }
#
-# altes Format:
+# old format:
# apc_default_levels = ( 95, 40, 1, 220 )
apc_default_levels = { "levels": ( 95, 40, 1, 220 ) }
@@ -81,9 +81,9 @@ def check_apc(item, params, info):
RunTimeRemaining = AdvBatteryRunTimeRemaining / 100
delay_after_test, alt_crit_capacity = None, None
- if len(params) == 4 and type(params) is tuple: # früher gab es 4 Parameter im tuple
+ if len(params) == 4 and type(params) is tuple: # old format with 4 params in tuple
crit_capacity, crit_batt_temp, crit_batt_curr, crit_voltage = params
- else: # nun sind es 6 im dict
+ else: # new format with up to 6 params in dict
crit_capacity, crit_batt_temp, crit_batt_curr, crit_voltage =
params['levels']
if params.get("post_calibration_levels"):
delay_after_test =
params['post_calibration_levels']['additional_time_span']