Module: check_mk
Branch: master
Commit: 7093c124587a3ae3da960e6975533338bb5f979d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7093c124587a3a…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Sep 2 09:10:28 2016 +0200
more user friendly ipmi discovery rule
---
web/plugins/wato/check_parameters.py | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index f6eae09..e5042b1 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -515,17 +515,20 @@ register_rule(group + '/' + subgroup_inventory,
)
),
( "summarize",
- Checkbox(
- title = _("Display only a summary of all sensors"),
- label = _("Summarize"),
+ DropdownChoice(
+ title = _("Display single sensors or a summary of all
sensors"),
help = _("If active, only a single summary item is displayed.
The summary "
"will explicitly mention sensors in warn/crit state
but the "
"sensors that are ok are aggregated."),
- default_value = True
- )
- )
- ]
- ),
+ choices = [
+ (False, _("Single sensors")),
+ (True, _("Summarize")),
+ ],
+ default_value = True,
+ ),
+ ),
+ ]
+ ),
match = 'first'
)