Module: check_mk
Branch: master
Commit: 38677002c7c3652d96d24a4b2ca7762c63d9cf48
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38677002c7c365…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Dec 16 14:55:12 2011 +0100
Add: Wato: Check Definitions
---
web/plugins/wato/check_parameters.py | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index cfc9ee3..69fe98d 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -110,8 +110,8 @@ checkgroups.append((
Tuple(
title = _("Maximum bandwidth in relation to the total
traffic"),
elements = [
- Float(title = _("Warning at"), unit =
_("percent")),
- Float(title = _("Critical at"), unit =
_("percent")),
+ Percentage(title = _("Warning at"), unit =
_("percent")),
+ Percentage(title = _("Critical at"), unit =
_("percent")),
]
),
Tuple(
@@ -136,8 +136,8 @@ checkgroups.append((
Tuple (
title = _("CRC errors rate"),
elements = [
- Float( title = _("Warning at"), unit =
_("percent")),
- Float( title = _("Critical at"), unit =
_("percent")),
+ Percentage( title = _("Warning at"), unit =
_("percent")),
+ Percentage( title = _("Critical at"), unit =
_("percent")),
]
)
),
@@ -145,8 +145,8 @@ checkgroups.append((
Tuple (
title = _("Enc-Out frames rate"),
elements = [
- Float( title = _("Warning at"), unit =
_("percent")),
- Float( title = _("Critical at"), unit =
_("percent")),
+ Percentage( title = _("Warning at"), unit =
_("percent")),
+ Percentage( title = _("Critical at"), unit =
_("percent")),
]
)
),
@@ -154,8 +154,8 @@ checkgroups.append((
Tuple (
title = _("No-TxCredits errors"),
elements = [
- Float( title = _("Warning at"), unit =
_("percent")),
- Float( title = _("Critical at"), unit =
_("percent")),
+ Percentage( title = _("Warning at"), unit =
_("percent")),
+ Percentage( title = _("Critical at"), unit =
_("percent")),
]
)
),
@@ -163,8 +163,8 @@ checkgroups.append((
Tuple (
title = _("C3 discards"),
elements = [
- Float( title = _("Warning at"), unit =
_("percent")),
- Float( title = _("Critical at"), unit =
_("percent")),
+ Percentage( title = _("Warning at"), unit =
_("percent")),
+ Percentage( title = _("Critical at"), unit =
_("percent")),
]
)
),