{# 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. With ``interactive`` set (the page), every topic folds, has its own CSV and PDF export, and a topic with a ``host_action`` offers it on its hosts. #} {% 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 }}
{% if interactive %} {% endif %} {% if discover %} {% endif %}| {% endif %} | # | {% for column in topic.columns %}{{ column.label }} | {% endfor %}
|---|---|---|
| {% endif %} | {{ loop.index }} | {% for column in topic.columns %}{{ cell(column, finding['values'][column.key], finding['values'].get('folder')) }} | {% endfor %}
No findings.
{% endif %} {% if interactive %}