Module: check_mk
Branch: master
Commit: d81e3fec816816b88949ab2763d32a067fe7b06a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d81e3fec816816…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 29 16:21:28 2018 +0200
5797 FIX netapp_api_luns: fixed interchanged free/used names in WATO configuration rule
The levels configuration for netapp_api_luns was incorrectly named.
The free space levels were treated as used space and vice versa.
Change-Id: Ia14e354a06438a5b46cb2e5b8f6ed8090596e29e
---
.werks/5797 | 13 +++++++++++++
web/plugins/wato/check_parameters.py | 4 ++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/5797 b/.werks/5797
new file mode 100644
index 0000000..4374356
--- /dev/null
+++ b/.werks/5797
@@ -0,0 +1,13 @@
+Title: netapp_api_luns: fixed interchanged free/used names in WATO configuration rule
+Level: 1
+Component: wato
+Class: fix
+Compatible: incomp
+Edition: cre
+State: unknown
+Version: 1.5.0i4
+Date: 1522333081
+
+The levels configuration for netapp_api_luns was incorrectly named.
+The free space levels were treated as used space and vice versa.
+
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 7019231..b3db19b 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -12592,9 +12592,9 @@ register_check_parameters(
default_value = (80.0, 90.0),
match = match_dual_level_type,
elements = [
- get_free_used_dynamic_valuespec("free",
"LUN"),
+ get_free_used_dynamic_valuespec("used",
"LUN"),
Transform(
- get_free_used_dynamic_valuespec("used",
"LUN", default_value = (20.0, 10.0)),
+ get_free_used_dynamic_valuespec("free",
"LUN", default_value = (20.0, 10.0)),
allow_empty = False,
forth = transform_filesystem_free,
back = transform_filesystem_free,