{# One configuration check report, separated by topic: a summary with the count per topic, then one section per topic with what it means, what to do and a table with the columns the topic declares. Shared by the page (checkmk_config_checks.html) and its print layout (checkmk_config_checks_report.html), so both show the same thing. #} {% macro cell(column, value, scope_folder) %} {%- if column.kind == 'items' -%}
{{ item.folder }}{% endif %}{% if item.rule_id %},
rule {{ item.rule_id }}{% endif %}
{{ value }}
{%- elif column.kind == 'state' -%}
{{ value }}
{%- else -%}
{{ value }}
{%- endif -%}
{% endmacro %}
{% for label, value in report.stats %} {{ label }}: {{ value }} {% endfor %}
| Topic | Findings |
|---|---|
| {{ section.topic.title }} | {% if section.findings %} {{ section.findings | length }} {% else %} 0 {% endif %} |
| Total | {{ report.total }} |
{{ topic.description }}
What to do: {{ topic.action }}
| # | {% for column in topic.columns %}{{ column.label }} | {% endfor %}
|---|---|
| {{ loop.index }} | {% for column in topic.columns %}{{ cell(column, finding['values'][column.key], finding['values'].get('folder')) }} | {% endfor %}
No findings.
{% endif %}