diff --git a/etc/modules/webui2.cfg b/etc/modules/webui2.cfg
index 34fef03f..18cc6792 100644
--- a/etc/modules/webui2.cfg
+++ b/etc/modules/webui2.cfg
@@ -70,6 +70,7 @@ define module {
# Database name where to fetch the logs/availability collections
#database shinken
+
# User authentication for database access
#username
#password
diff --git a/module/helper.py b/module/helper.py
index 716ee6ee..370c6943 100644
--- a/module/helper.py
+++ b/module/helper.py
@@ -806,7 +806,7 @@ def get_timeperiod_html(self, timeperiod):
return content
- def get_check_command_html(self, item):
+ def get_check_command_html(self, item, command_line):
if not item or not item.check_command:
return ''
@@ -814,10 +814,17 @@ def get_check_command_html(self, item):
getattr(item.check_command, "command_name", "None"))
checks_data = [item, item.host] if item.my_type == 'service' else [item]
+ mr = MacroResolver()
if ALIGNAK:
- expanded = MacroResolver().resolve_simple_macros_in_string(c_line, checks_data, [], [])
+ expanded = mr.resolve_simple_macros_in_string(command_line,
+ checks_data, [], [])
+ expanded2 = mr.resolve_simple_macros_in_string(c_line, checks_data, [], [])
+
+ # expanded = mr.resolve_command(item.check_command, checks_data, [], [])
else:
- expanded = MacroResolver().resolve_simple_macros_in_string(c_line, checks_data)
+ expanded = mr.resolve_simple_macros_in_string(command_line,
+ checks_data)
+ expanded2 = mr.resolve_simple_macros_in_string(c_line, checks_data)
html_content = 'Command line:' \
'
' \
@@ -833,7 +840,7 @@ def get_check_command_html(self, item):
'
%s' % ("
".join(item.check_command.args)
if item.check_command.args else "None")
- return html_content, expanded
+ return html_content, expanded, expanded2
def get_contact_avatar(self, contact, size=24, with_name=True, with_link=True):
name = contact
diff --git a/module/plugins/eltdetail/views/_eltdetail_information.tpl b/module/plugins/eltdetail/views/_eltdetail_information.tpl
index 6bb8a2ab..a8519606 100644
--- a/module/plugins/eltdetail/views/_eltdetail_information.tpl
+++ b/module/plugins/eltdetail/views/_eltdetail_information.tpl
@@ -144,15 +144,22 @@
{{ expanded }}
+ {{ expanded2 }}
+ {{ type(elt.check_command) }}
+ {{ cmd.__dict__ }}