Module: check_mk
Branch: master
Commit: 5727b444c80d3a3ff8cdbec8cbf432e7c4328d44
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5727b444c80d3a…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Oct 17 12:13:10 2016 +0200
fixed unit conversion
---
checks/mssql_blocked_sessions | 2 +-
web/plugins/wato/check_parameters.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/mssql_blocked_sessions b/checks/mssql_blocked_sessions
index a9d1e8d..ad43fcb 100644
--- a/checks/mssql_blocked_sessions
+++ b/checks/mssql_blocked_sessions
@@ -47,7 +47,7 @@ def check_mssql_blocked_sessions(_no_item, params, info):
if params:
state = params.get("state", 2)
warn, crit = params.get("waittime", (0, 0))
- wait_duration_sec = float(wait_duration_ms) / 100
+ wait_duration_sec = float(wait_duration_ms) / 1000
if wait_duration_sec >= crit and not crit == 0:
state = 2
elif wait_duration_sec >= warn and not warn == 0:
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index e85b02d..71ad7e5 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -8208,8 +8208,8 @@ register_check_parameters(
"overwrite the default state set
above."),
default_value = (0, 0),
elements = [
- Float(title = _("Warning at"), unit =
_("seconds")),
- Float(title = _("Critical at"), unit =
_("seconds")),
+ Float(title = _("Warning at"), unit =
_("seconds"), display_format = _("%.3f")),
+ Float(title = _("Critical at"), unit =
_("seconds"), display_format = _("%.3f")),
]
)),
],