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 4bb56f4d..70954157 100644
--- a/module/helper.py
+++ b/module/helper.py
@@ -806,6 +806,42 @@ def get_timeperiod_html(self, timeperiod):
return content
+ def get_check_command_html(self, item, command_line):
+ if not item or not item.check_command:
+ return ''
+
+ c_line = getattr(item.check_command, "command_line",
+ getattr(item.check_command, "command_name", "None"))
+
+ checks_data = [item, item.host] if item.my_type == 'service' else [item]
+ mr = MacroResolver()
+ if ALIGNAK:
+ expanded = mr.resolve_simple_macros_in_string(command_line, checks_data, [], [],
+ item.check_command.args)
+ expanded2 = mr.resolve_simple_macros_in_string(c_line, checks_data, [], [],
+ item.check_command.args)
+ else:
+ expanded = mr.resolve_simple_macros_in_string(command_line, checks_data,
+ item.check_command.args)
+ expanded2 = mr.resolve_simple_macros_in_string(c_line, checks_data,
+ item.check_command.args)
+
+ html_content = 'Command line:' \
+ '
' \
+ '
{{ expanded2 }}