Module: check_mk
Branch: master
Commit: 791600c2a4d926935cc28d3394b00bf565129d52
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=791600c2a4d926…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Jan 21 12:31:23 2015 +0100
#1673 netapp_volumes: now able to configure levels by magic factor
---
.werks/1673 | 9 +++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 20 ++++++++++++++++++++
3 files changed, 30 insertions(+)
diff --git a/.werks/1673 b/.werks/1673
new file mode 100644
index 0000000..cea2876
--- /dev/null
+++ b/.werks/1673
@@ -0,0 +1,9 @@
+Title: netapp_volumes: now able to configure levels by magic factor
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1421839850
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 2b33758..a2c257a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -48,6 +48,7 @@
NOTE: Please refer to the migration notes!
* 1525 viprinet_temp: Now uses new Temperature WATO rule...
NOTE: Please refer to the migration notes!
+ * 1673 netapp_volumes: now able to configure levels by magic factor
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index d06f302..b8bce31 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -5034,6 +5034,26 @@ register_check_parameters(
( "iscsi", _("ISCSI") ),
],
)),
+ ( "magic",
+ Float(
+ title = _("Magic factor (automatic level adaptation for large
volumes)"),
+ default_value = 0.8,
+ minvalue = 0.1,
+ maxvalue = 1.0)),
+ ( "magic_normsize",
+ Integer(
+ title = _("Reference size for magic factor"),
+ default_value = 20,
+ minvalue = 1,
+ unit = _("GB"))),
+ ( "levels_low",
+ Tuple(
+ title = _("Minimum levels if using magic factor"),
+ help = _("The volume levels will never fall below these values,
when using "
+ "the magic factor and the volume is very small."),
+ elements = [
+ Percentage(title = _("Warning if above"), unit =
_("% usage"), allow_int = True, default_value=50),
+ Percentage(title = _("Critical if above"), unit =
_("% usage"), allow_int = True, default_value=60)])),
( "trend_range",
Optional(
Integer(