Module: check_mk
Branch: master
Commit: f7c03c64a51baa6af04a8cfe5e5a119a63010eb7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f7c03c64a51baa…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Mar 20 10:20:31 2017 +0100
4523 FIX tsm_stagingpools, tsm_storagepools: Fixed numerical data handling, ie. util and
size may contain ","
Change-Id: Iaee34a77656ec140d74ef4b9e79b6ece4487f9dc
---
.werks/4523 | 11 +++++++++++
checks/tsm_stagingpools | 2 +-
checks/tsm_storagepools | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/4523 b/.werks/4523
new file mode 100644
index 0000000..4349c4a
--- /dev/null
+++ b/.werks/4523
@@ -0,0 +1,11 @@
+Title: tsm_stagingpools, tsm_storagepools: Fixed numerical data handling, ie. util and
size may contain ","
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.4.0b5
+Date: 1490001366
+
+
diff --git a/checks/tsm_stagingpools b/checks/tsm_stagingpools
index db613b5..7d33770 100644
--- a/checks/tsm_stagingpools
+++ b/checks/tsm_stagingpools
@@ -52,7 +52,7 @@ def parse_tsm_stagingpools(info):
item = inst + " / " + pool
parsed.setdefault( item, {} )
parsed[item].setdefault( node, [] )
- parsed[item][node].append( util )
+ parsed[item][node].append( util.replace(",", ".") )
for line in info:
node = line[0]
diff --git a/checks/tsm_storagepools b/checks/tsm_storagepools
index ea62eb2..94e7b63 100644
--- a/checks/tsm_storagepools
+++ b/checks/tsm_storagepools
@@ -52,7 +52,7 @@ def parse_tsm_storagepools(info):
item = name
else:
item = inst + " / " + name
- parsed.setdefault(item, {"type" : stype, "size" : size})
+ parsed.setdefault(item, {"type" : stype, "size" :
size.replace(",", ".")})
return parsed