{% load helpers %}

Checkmk configuration

{% if not instance and not binding %}
not monitored Select an instance in the custom field "Checkmk instance".
{% else %} {% if binding %} {% if binding.pending %} {% endif %} {% if binding.messages %} {% endif %} {% if effective.tags %} {% endif %} {% if effective.teams %} {% endif %} {% if effective.labels %} {% endif %} {% if companion_tab %}{% endif %} {% if reservation %}{% endif %} {% endif %}
State {% if binding %}{{ binding.get_state_display }} {% else %}not computed yet{% endif %}
Instance{{ instance|linkify|placeholder }}
Host name{% if checkmk_url %}{{ binding.host_name }}{% else %}{{ binding.host_name|placeholder }}{% endif %}
Folder{{ binding.folder|placeholder }}
Pending change{% include 'netbox_checkmk_sync/inc/diff.html' with diff=binding.pending %} {% if binding.authors %}
by {{ binding.authors|join:", " }}
{% endif %}
Messages{% for m in binding.messages %}
{{ m }}
{% endfor %}
Tag groups{% for t in effective.tags %}
{{ t.group }} = {{ t.value|default:"—" }} ({{ t.origin|default:"none" }})
{% endfor %}
Teams{{ effective.teams|join:", " }}
Labels{% for k, v in effective.labels.items %}{{ k }}:{{ v }} {% endfor %}
Monitoring statusCheckmk tab (netbox-checkmk)
Reservedby {{ reservation.user }} until {{ reservation.expires|isodatetime:"minutes" }}{% if reservation.comment %} ({{ reservation.comment }}){% endif %}
Last deploy{% if last %}{{ last|linkify }}, {{ last.created|isodatetime:"minutes" }}, {{ last.user|placeholder }}{% else %}—{% endif %}
{% if reservations_on %} {% endif %} {% if binding %} {% endif %} {% endif %} {% for b in others %} {% endfor %}