Module: check_mk
Branch: master
Commit: bb9c9337605545b23d03b801e0a02d5ecba39c73
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bb9c9337605545…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Jun 9 15:03:07 2015 +0200
LVM rule is now really simplified
---
web/plugins/wato/check_parameters.py | 37 ++++++++--------------------------
1 file changed, 8 insertions(+), 29 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index d29d2c1..d8cc38e 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -2606,36 +2606,15 @@ register_check_parameters(
subgroup_storage,
"volume_groups",
_("Volume Groups (LVM)"),
- Dictionary(
+ Alternative(
+ title = _("Levels for volume group"),
+ show_alternative_title = True,
+ default_value = (80.0, 90.0),
+ match = match_dual_level_type,
elements = [
- ("levels",
- Alternative(
- title = _("Levels for volume group"),
- show_alternative_title = True,
- default_value = (80.0, 90.0),
- match = match_dual_level_type,
- elements = [
- get_free_used_dynamic_valuespec("used",
"volume group"),
- Transform(
- get_free_used_dynamic_valuespec("free",
"volume group", default_value = (20.0, 10.0)),
- title = _("Levels for free space"),
- allow_empty = False,
- forth = transform_filesystem_free,
- back = transform_filesystem_free
- )
- ]
- )
- ),
- ( "show_levels",
- DropdownChoice(
- title = _("Display warn/crit levels in check output..."),
- choices = [
- ( "onproblem", _("Only if the status is
non-OK")),
- ( "always", _("Always") ),
- ],
- default_value = "onproblem",
- )),
- ],
+ get_free_used_dynamic_valuespec("used", "volume group"),
+ get_free_used_dynamic_valuespec("free", "volume group",
default_value = (20.0, 10.0)),
+ ]
),
TextAscii(
title = _("Volume Group"),