Module: check_mk
Branch: master
Commit: bcb9ccc88c583995f40836856b0504d05db3a565
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bcb9ccc88c5839…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Tue Apr 8 16:14:43 2014 +0200
ibm_svc_mdiskgrp: free capacity of 0 bytes was not handled correctly
---
checks/ibm_svc_mdiskgrp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/ibm_svc_mdiskgrp b/checks/ibm_svc_mdiskgrp
index c28ba6d..dda631a 100644
--- a/checks/ibm_svc_mdiskgrp
+++ b/checks/ibm_svc_mdiskgrp
@@ -51,6 +51,8 @@ def ibm_svc_mdiskgrp_to_mb(size):
size = int(float(size.replace("PB", ""))) * 1024 * 1024 *
1024
elif size.endswith("EB"):
size = int(float(size.replace("EB", ""))) * 1024 * 1024 * 1024
* 1024
+ else:
+ size = int(float(size))
return size
def inventory_ibm_svc_mdiskgrp(info):