{% extends 'admin/master.html' %} {% block body %}
When a Setup Rule outcome matches on Condition Host with
{{ '{{HOSTNAME}}' }} and nothing else, the export merges every
matching host into one Checkmk rule that lists every
hostname. Those rules are hard to read, slow to match, and get rewritten
whenever a single host joins or leaves. This page finds them and the host
attribute that covers exactly the same hosts.
The analysis reads the Syncer database only — nothing is sent to Checkmk. It walks every host twice, so it runs in the background.
{% if not analysis %}Analysed {{ analysis.finished_at.strftime('%Y-%m-%d %H:%M') }}, rules from {{ analysis.min_hosts }} hosts upwards. The findings describe the rules as they were then.
{% if not analysis.findings %}
ruleset {{ finding.ruleset }} ·
folder {{ finding.folder }}
{% if finding.comment %} · {{ finding.comment }}{% endif %}
{{ finding.value }}
{{ label.source }} is no usable label on its own,
so {{ label.key }} is a hash of it. Applying
creates the Rewrite rule that builds it.
{% endif %}
{% if label.needs_filter %}
{{ label.key }} does not pass the export filter
yet. Applying lets it through.
{% endif %}
{% if loop.first %}
{% endif %}