{% extends 'admin/master.html' %} {% block body %}

Limit Host Export to Folders

Limit the host export of a single Checkmk account to selected folders (subfolders included). Only that account is affected — its export then pushes only the hosts whose target folder is in the selection. Accounts without a scope keep exporting every host.

{% if not accounts %}
No enabled Checkmk (cmkv2) account found. Create one first.
{% endif %}
{% if selected_account %}
{% if scope_enabled %}
Folder scope active. Only hosts in the selected folders below are exported to {{ selected_account }}.
{% else %}
Folder scope disabled for {{ selected_account }}. This account currently exports all hosts. Select folders (or add custom ones) and save to enable the limit.
{% endif %}
Folders for {{ selected_account }}
{% if rule_folders %}

From your rules — click to add:

{% for folder in rule_folders %} {% endfor %}
{% else %}
No literal folders found in the current rules — add the folders manually below. Jinja-templated folders can't be listed here but still match at export time.
{% endif %}
Type a folder path and press Enter or Add. Subfolders are included automatically.
No folders selected — this account exports every host.
{% endif %}
{% endblock %}