Module: check_mk
Branch: master
Commit: 28f8ef0e18039a73731452eb289350b6a77898cf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=28f8ef0e18039a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 18 08:50:15 2014 +0100
#1769 FIX megaraid_bbu: Fixed exception for some controllers reporting "full charge
capacity"
---
.werks/1769 | 10 ++++++++++
ChangeLog | 1 +
checks/megaraid_bbu | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1769 b/.werks/1769
new file mode 100644
index 0000000..7a0119c
--- /dev/null
+++ b/.werks/1769
@@ -0,0 +1,10 @@
+Title: megaraid_bbu: Fixed exception for some controllers reporting "full charge
capacity"
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418888985
+
+
diff --git a/ChangeLog b/ChangeLog
index a3e35f2..d63eb95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
* 1666 FIX: inventory check esx_vsphere_hostsystem: no longer crashes if information
is missing...
* 1767 FIX: fc_port: Re-enabled check discovery of this check
* 1768 FIX: brocade_fcport/brocade_info: Only try to discover these services when
device provides correct info...
+ * 1769 FIX: megaraid_bbu: Fixed exception for some controllers reporting "full
charge capacity"
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/megaraid_bbu b/checks/megaraid_bbu
index ca7d8ac..021cae6 100644
--- a/checks/megaraid_bbu
+++ b/checks/megaraid_bbu
@@ -88,7 +88,7 @@ def check_megaraid_bbu(item, _no_params, info):
else:
charge = ", Charge is %s" % controller['Relative State of
Charge']
if 'Full Charge Capacity' in controller:
- charge += ", Charge is %s, Capacity is %s" % controller['Full
Charge Capacity']
+ charge += ", Capacity is %s" % controller['Full Charge
Capacity']
# verify defined important parameters to current level
for varname, (refvalue, refstate) in megaraid_bbu_refvalues.items():