Module: check_mk
Branch: master
Commit: ac5c38f4e6e64e7ffbd08354ec550ba6292f8445
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ac5c38f4e6e64e…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Dec 7 14:50:05 2015 +0100
#1311 netapp_api_volumes: Added option to configure inode levels in wato
---
.werks/1311 | 9 +++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 32 ++++++++++++++++++++++++++++++++
3 files changed, 42 insertions(+)
diff --git a/.werks/1311 b/.werks/1311
new file mode 100644
index 0000000..90d9887
--- /dev/null
+++ b/.werks/1311
@@ -0,0 +1,9 @@
+Title: netapp_api_volumes: Added option to configure inode levels in wato
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.7i4
+Date: 1449496150
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 9d2097d..f505452 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -176,6 +176,7 @@
* 2442 WATO remove host: improved cleanup of obsolete host files...
* 2785 WATO Web-API: i18n of error messages and intitial validation of incoming
request...
* 1302 Added new WATO permission to deactivate the function rename of hosts...
+ * 1311 netapp_api_volumes: Added option to configure inode levels in wato
* 2666 FIX: Fix search for global configuration variables: ignore case now
* 2715 FIX: Fixed visibility of BI aggregations in editor
* 2716 FIX: Fixed error reporting on disabled checks page in case of broken man
pages
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 738c569..a8025fa 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -6863,6 +6863,38 @@ register_check_parameters(
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)])),
+ ( "inodes_levels",
+ Alternative(
+ title = _("Levels for Inodes"),
+ help = _("The number of remaining inodes on the filesystem.
"
+ "Please note that this setting has no effect on some
filesystem checks."),
+ elements = [
+ Tuple(title = _("Percentage free"),
+ elements = [
+ Percentage(title = _("Warning if less
than")),
+ Percentage(title = _("Critical if less
than")),
+ ]
+ ),
+ Tuple(title = _("Absolute free"),
+ elements = [
+ Integer(title = _("Warning if less
than"), size = 10, unit = _("inodes"), minvalue = 0, default_value =
10000),
+ Integer(title = _("Critical if less
than"), size = 10, unit = _("inodes"), minvalue = 0, default_value =
5000),
+ ]
+ )
+ ],
+ default_value = (10.0, 5.0),
+ )
+ ),
+ ( "show_inodes",
+ DropdownChoice(
+ title = _("Display inode usage in check output..."),
+ choices = [
+ ( "onproblem", _("Only in case of a problem")),
+ ( "onlow", _("Only in case of a problem or if
inodes are below 50%")),
+ ( "always", _("Always")),
+ ],
+ default_value = "onlow",
+ )),
( "trend_range",
Optional(
Integer(