Module: check_mk
Branch: master
Commit: d86a7e88b293e5eb850ff876864feedce8319658
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d86a7e88b293e5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 6 12:58:23 2012 +0100
diskstat: make inventory mode configurable via WATO
---
ChangeLog | 3 +++
web/plugins/wato/check_mk_configuration.py | 13 +++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5a7671b..0fef0b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.1.13i4:
+ WATO:
+ * diskstat: make inventory mode configurable via WATO
+
Checks & Agents:
* hpux_if: fix missing default parameter errors
* hpux_if: make configurable via WATO
diff --git a/web/plugins/wato/check_mk_configuration.py
b/web/plugins/wato/check_mk_configuration.py
index 089c6ad..93f9cb4 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -442,6 +442,19 @@ register_configvar(group,
choices = _if_porttype_choices,
columns = 3))
+register_configvar(group,
+ "diskstat_inventory_mode",
+ DropdownChoice(
+ title = _("Inventory mode for disk IO checks"),
+ help = _("When doing inventory the various disk IO checks can either create
"
+ "a single check per host, one check per device or a separate check
"
+ "for read and written bytes."),
+ choices = [
+ ('summary', _("one summary check per host")),
+ ('single' , _("one check per individual disk/LUN") ),
+ ('legacy' , _("one check for read, one for write") ),
+ ]),
+ )
# +----------------------------------------------------------------------+