Module: check_mk
Branch: master
Commit: 5bd104d9d3846002b253957d26c52e976495017b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5bd104d9d38460…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 3 17:25:17 2016 +0200
Updated label and help text for custom host macros
---
web/htdocs/wato.py | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 47ada5c..432ea6f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -14691,10 +14691,19 @@ def mode_edit_custom_attr(phase, what):
label = _("Show the setting of the attribute in the list
table"))
forms.section(_('Add as custom macro'))
- html.help(_('The attribute can be added to the contact definiton in order '
- 'to use it for notifications.'))
+ if what == "user":
+ html.help(_('The attribute can be added to the contact definiton in order
'
+ 'to use it for notifications.'))
+ label = _("Make this variable available in notifications")
+ else:
+ html.help(_("The attribute can be added to the host definition in order to
"
+ "use it as monitoring macro in different places, for example
"
+ "as macro in check commands or notifications."))
+ label = _("Make this variable available as monitoring macro, "
+ "e.g. in check commands or in notifications.")
+
html.checkbox('add_custom_macro', attr.get('add_custom_macro',
False),
- label = _("Make this variable available in notifications"))
+ label=label)
forms.end()
html.show_localization_hint()