Module: check_mk
Branch: master
Commit: 2ee25c5d9f994bb1232ffe7953696d9034e84a46
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ee25c5d9f994b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 14 08:57:36 2019 +0100
Add some help texts about needed permission
Change-Id: I5a1f47801d50c80a86d3189095011b4fec593647
---
cmk/gui/plugins/wato/active_checks.py | 4 +++-
cmk/gui/plugins/wato/check_mk_configuration.py | 4 +++-
cmk/gui/plugins/wato/datasource_programs.py | 4 +++-
cmk/gui/wato/pages/host_diagnose.py | 3 ++-
4 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/cmk/gui/plugins/wato/active_checks.py
b/cmk/gui/plugins/wato/active_checks.py
index 42943d1..6cc087c 100644
--- a/cmk/gui/plugins/wato/active_checks.py
+++ b/cmk/gui/plugins/wato/active_checks.py
@@ -1691,7 +1691,9 @@ class RulespecCustomChecks(HostRulespec):
"to be executed directly on your monitoring server. These checks
"
"will not use Check_MK. It is also possible to configure passive
"
"checks that are fed with data from external sources via the
"
- "command pipe of the monitoring core."),
+ "command pipe of the monitoring core.") +
+ _("This option can only be used with the permission \"Can add or
modify executables\"."
+ ),
elements=[
("service_description",
TextUnicode(
diff --git a/cmk/gui/plugins/wato/check_mk_configuration.py
b/cmk/gui/plugins/wato/check_mk_configuration.py
index 1df3723..84071ba 100644
--- a/cmk/gui/plugins/wato/check_mk_configuration.py
+++ b/cmk/gui/plugins/wato/check_mk_configuration.py
@@ -2972,7 +2972,9 @@ class RulespecHostCheckCommands(HostRulespec):
help=_(
"Usually Check_MK uses a series of PING (ICMP echo request) in order
to determine "
"whether a host is up. In some cases this is not possible, however.
With this rule "
- "you can specify an alternative way of determining the host's
state."),
+ "you can specify an alternative way of determining the host's
state.") + _(
+ "The option to use a custom command can only be configured with
the permission "
+ "\"Can add or modify executables\"."),
choices=self._host_check_command_choices,
default_value="ping",
orientation="horizontal",
diff --git a/cmk/gui/plugins/wato/datasource_programs.py
b/cmk/gui/plugins/wato/datasource_programs.py
index ddd5d44..881dc49 100644
--- a/cmk/gui/plugins/wato/datasource_programs.py
+++ b/cmk/gui/plugins/wato/datasource_programs.py
@@ -94,7 +94,9 @@ class RulespecDatasourcePrograms(HostRulespec):
"program that should be called by Check_MK instead of connecting
the agent "
"via TCP. That program must output the agent's data on
standard output in "
"the same format the agent would do. This is for example useful
for monitoring "
- "via SSH.") + monitoring_macro_help(),
+ "via SSH.") + monitoring_macro_help() +
+ _("This option can only be used with the permission \"Can add or
modify executables\"."
+ ),
label=_("Command line to execute"),
empty_text=_("Access Check_MK Agent via TCP"),
size=80,
diff --git a/cmk/gui/wato/pages/host_diagnose.py b/cmk/gui/wato/pages/host_diagnose.py
index e2b9fd1..eb2c5b8 100644
--- a/cmk/gui/wato/pages/host_diagnose.py
+++ b/cmk/gui/wato/pages/host_diagnose.py
@@ -266,7 +266,8 @@ class ModeDiagHost(WatoMode):
"program that should be called by Check_MK instead of
connecting the agent "
"via TCP. That program must output the agent's data
on standard output in "
"the same format the agent would do. This is for
example useful for monitoring "
- "via SSH.") + monitoring_macro_help(),
+ "via SSH.") + monitoring_macro_help() + "
"
+ + _("This option can only be used with the permission
\"Can add or modify executables\"."),
))
]
else: