Module: check_mk
Branch: master
Commit: 786c47236bd9f44f521568e4fe0109c326b917d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=786c47236bd9f4…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Jan 31 12:06:10 2014 +0100
FIX Error rates for network interfaces can now be set smaller then 0.1 when using Wato.
Values like smaller 0.1 are not longer saved as 0.0.
---
.werks/131 | 9 +++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/131 b/.werks/131
new file mode 100644
index 0000000..2c1011c
--- /dev/null
+++ b/.werks/131
@@ -0,0 +1,9 @@
+Title: Error rates for network interfaces can now be set smaller then 0.1 when using
Wato.
+Level: 1
+Component: wato
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1391166250
+
+Values like smaller 0.1 are not longer saved as 0.0.
diff --git a/ChangeLog b/ChangeLog
index 116dc46..ccf2518 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -241,6 +241,7 @@
* 0129 FIX: Fixed permission bug in "Edit user profile" dialog....
* 0269 FIX: brocade_fcport: fixed problem on displaying check_parameters in WATO...
* 0271 FIX: Fixed sorting in duallist element (two lists with interchangable
elements)...
+ * 0131 FIX: Error rates for network interfaces can now be set smaller then 0.1 when
using Wato....
Notifications:
* 0362 sms: now searching PATH for sendsms and smssend commands...
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index f411f4a..6973b05 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1746,8 +1746,8 @@ register_check_parameters(
"the given bounds. The error rate is computed by dividing
number of "
"errors by the total number of packets (successful plus
errors)."),
elements = [
- Percentage(title = _("Warning if above"), label =
_("errors"), default_value = 0.01),
- Percentage(title = _("Critical if above"), label =
_("errors"), default_value = 0.1)
+ Percentage(title = _("Warning if above"), label =
_("errors"), default_value = 0.01, display_format = '%.3f' ),
+ Percentage(title = _("Critical if above"), label =
_("errors"), default_value = 0.1, display_format = '%.3f' )
])),
( "speed",
OptionalDropdownChoice(