Module: check_mk
Branch: master
Commit: 6c37f8f7de7505520cfc68b79d203b875cf991ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6c37f8f7de7505…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Sep 11 07:46:42 2017 +0200
5120 FIX ps, ps.perf: Fixed regex range introduced with werk 5114 which allows
"/" in process name in manual checks
Change-Id: I98f87c43e38516621384601bb6fe13111292e87b
---
.werks/5120 | 11 +++++++++++
web/plugins/wato/check_parameters.py | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/5120 b/.werks/5120
new file mode 100644
index 0000000..39e6cae
--- /dev/null
+++ b/.werks/5120
@@ -0,0 +1,11 @@
+Title: ps, ps.perf: Fixed regex range introduced with werk 5114 which allows
"/" in process name in manual checks
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1505108567
+
+
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index e82ec6a..b89adce 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -3671,9 +3671,9 @@ register_check_parameters(
title = _("Process Name"),
help = _("This name will be used in the description of the service"),
allow_empty = False,
- regex = "^[a-zA-Z_0-9 _.-/]*$",
+ regex = "^[a-zA-Z_0-9 _./-]*$",
regex_error = _("Please use only a-z, A-Z, 0-9, space, underscore, "
- "dot and hyphon for your service description"),
+ "dot, hyphon and slash for your service description"),
),
"dict",
has_inventory = False,