Module: check_mk
Branch: master
Commit: 11c6e18bb7052fab56d5858eb7599c59bae4ec5c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=11c6e18bb7052f…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Aug 23 13:34:28 2012 +0200
Extended wato settings for windows memory levels
---
web/plugins/wato/check_parameters.py | 46 ++++++++++++++++++++++++++-------
1 files changed, 36 insertions(+), 10 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 58333f9..86041c0 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -539,17 +539,43 @@ checkgroups.append((
Dictionary(
elements = [
( "memory",
- Tuple(
- title = _("Memory levels"),
- elements = [
- Percentage(title = _("Warning at"), label = _("%
usage"), allow_int = True),
- Percentage(title = _("Critical at"), label = _("%
usage"), allow_int = True)])),
+ Alternative(
+ title = _("Memory Levels"),
+ elements = [
+ Tuple(
+ title = _("Levels in percent"),
+ elements = [
+ Percentage(title = _("Warning at"), label =
_("% usage")),
+ Percentage(title = _("Critical at"), label =
_("% usage")),
+ ]
+ ),
+ Tuple(
+ title = _("Absolute levels"),
+ elements = [
+ Filesize(title = _("Warning higher as")),
+ Filesize(title = _("Critical higher as")),
+ ]
+ )
+ ])),
( "pagefile",
- Tuple(
- title = _("Pagefile levels"),
- elements = [
- Percentage(title = _("Warning at"), label = _("%
usage"), allow_int = True),
- Percentage(title = _("Critical at"), label = _("%
usage"), allow_int = True)])),
+ Alternative(
+ title = _("Pagefile Levels"),
+ elements = [
+ Tuple(
+ title = _("Levels in percent"),
+ elements = [
+ Percentage(title = _("Warning at"), label =
_("% usage")),
+ Percentage(title = _("Critical at"), label =
_("% usage")),
+ ]
+ ),
+ Tuple(
+ title = _("Absolute levels"),
+ elements = [
+ Filesize(title = _("Warning higher as")),
+ Filesize(title = _("Critical higher as")),
+ ]
+ )
+ ])),
]),
None,
"dict"