Module: check_mk
Branch: master
Commit: 788380326d9361f406ae53cec26d2236663f8d92
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=788380326d9361…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 21 13:45:52 2013 +0100
Suggest use default value for filesystem levels that make sense
---
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 23 +++++++++++++----------
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 208e8c3..e42011d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -59,6 +59,7 @@
* FIX: flexible notification valuespec is now localizable
* FIX: Alias values of host/service/contact groups need to be set and unique
within the group
+ * Suggest use default value for filesystem levels that make sense
1.2.2b3:
Checks & Agents:
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 194fbdd..05f0cba 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1080,16 +1080,18 @@ checkgroups.append((
Tuple(
title = _("Levels for the used space"),
elements = [
- Percentage(title = _("Warning at"), label = _("%
usage"), allow_int = True),
- Percentage(title = _("Critical at"), label = _("%
usage"), allow_int = True)])),
+ Percentage(title = _("Warning at"), label = _("%
usage"), allow_int = True, default_value=80),
+ Percentage(title = _("Critical at"), label = _("%
usage"), allow_int = True, default_value=90)])),
( "magic",
Float(
title = _("Magic factor (automatic level adaptation for large
filesystems)"),
+ default_value = 0.8,
minvalue = 0.1,
maxvalue = 1.0)),
( "magic_normsize",
Integer(
title = _("Reference size for magic factor"),
+ default_value = 20,
minvalue = 1,
label = _("GB"))),
( "levels_low",
@@ -1098,12 +1100,13 @@ checkgroups.append((
help = _("The filesystem levels will never fall below these
values, when using "
"the magic factor and the filesystem is very
small."),
elements = [
- Percentage(title = _("Warning at"), label =
_("usage"), allow_int = True),
- Percentage(title = _("Critical at"), label =
_("usage"), allow_int = True)])),
+ Percentage(title = _("Warning at"), label =
_("usage"), allow_int = True, default_value=50),
+ Percentage(title = _("Critical at"), label =
_("usage"), allow_int = True, default_value=60)])),
( "trend_range",
Optional(
Integer(
title = _("Range for filesystem trend computation"),
+ default_value = 24,
minvalue = 1,
label= _("hours")),
title = _("Trend computation"),
@@ -1112,22 +1115,22 @@ checkgroups.append((
Tuple(
title = _("Levels on trends in MB per range"),
elements = [
- Integer(title = _("Warning at"), label = _("MB /
range")),
- Integer(title = _("Critical at"), label = _("MB /
range"))
+ Integer(title = _("Warning at"), label = _("MB /
range"), default_value = 100),
+ Integer(title = _("Critical at"), label = _("MB /
range"), default_value = 200)
])),
( "trend_perc",
Tuple(
title = _("Levels for the percentual growth"),
elements = [
- Percentage(title = _("Warning at"), label = _("% /
range")),
- Percentage(title = _("Critical at"), label = _("% /
range"))
+ Percentage(title = _("Warning at"), label = _("% /
range"), default_value = 5,),
+ Percentage(title = _("Critical at"), label = _("% /
range"), default_value = 10,),
])),
( "trend_timeleft",
Tuple(
title = _("Levels on the time left until the filesystem gets
full"),
elements = [
- Integer(title = _("Warning at"), label = _("hours
left")),
- Integer(title = _("Critical at"), label = _("hours
left"))
+ Integer(title = _("Warning at"), label = _("hours
left"), default_value = 12,),
+ Integer(title = _("Critical at"), label = _("hours
left"), default_value = 6, ),
])),
( "trend_perfdata",
Checkbox(