Module: check_mk
Branch: master
Commit: 1dc43bbeec538b6c3776d77d15120d141cd13ba3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1dc43bbeec538b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 20 10:09:00 2015 +0100
apc_symmetra: Fixed exception during self test when having no alternative crit capacity
configure
---
checks/apc_symmetra | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/apc_symmetra b/checks/apc_symmetra
index d9dac4e..9cffafd 100644
--- a/checks/apc_symmetra
+++ b/checks/apc_symmetra
@@ -117,7 +117,7 @@ def check_apc(item, params, info):
# 4. Check battery capacity
state = 0
infotxt = "capacity %d%% (crit at or below " % battery_capacity
- if (alt_crit_capacity != None and diff_sec < allowed_delay_sec) or
self_test_in_progress:
+ if alt_crit_capacity != None and diff_sec < allowed_delay_sec:
infotxt += "%d%% in delay after calib.)" % alt_crit_capacity
if battery_capacity <= alt_crit_capacity:
state = 2