{% extends 'generic/object.html' %} {% load helpers %} {% block subtitle %}{% endblock %} {% block control-buttons %} {% if can_adopt and not object.adopt %}
{% csrf_token %}
{% endif %} {% if can_hand_back and not object.hand_back %}
{% csrf_token %}
{% endif %} {% if can_delete_now and not object.delete_now %}
{% csrf_token %}
{% endif %} {% endblock %} {% block content %}

Host

{% if object.adopt %}{% endif %} {% if object.delete_now %}{% endif %} {% if object.hand_back %}{% endif %}
NetBox object{{ object.netbox_object|linkify|placeholder }} {{ object.object_ref }}
Instance{{ object.instance|linkify }}
Host name{{ object.host_name|placeholder }}
Folder{{ object.folder|placeholder }}
State{{ object.get_state_display }}
Adoptrequested; the foreign host is taken over with the next deploy
Delete nowrequested; skips the grace period with the next deploy
Hand backrequested; the host stays in Checkmk and is no longer managed after the next deploy
Authors{{ object.authors|join:", "|placeholder }}
Messages{% for m in object.messages %}
{{ m }}
{% empty %}—{% endfor %}
{% if lock %}

Rollback lock

Rolled back to revision {{ lock.rollback_to }} by {{ lock.user|placeholder }} on {{ lock.created|isodatetime:"minutes" }} ({{ lock.revision|linkify }}). A pending change of this object is shown but not deployed until NetBox matches the rolled-back state again; then the lock releases itself.

{% if object.pending %}

NetBox differs from the rolled-back state in (rolled back → NetBox):

{% include 'netbox_checkmk_sync/inc/diff.html' with diff=object.pending %}{% endif %} {% if object.netbox_object %}

Edit in NetBox

{% endif %} {% if can_rollback %}
{% csrf_token %}
{% endif %}
{% endif %}

Pending change

{% include 'netbox_checkmk_sync/inc/diff.html' with diff=object.pending %}{% if not object.pending %}none{% endif %}

Host history

{% for r in history %} {% empty %}{% endfor %}
{{ r|linkify }}{{ r.created|isodatetime:"minutes" }}{{ r.user|placeholder }}{{ r.description }} {% if can_rollback %}
{% csrf_token %}
{% endif %}
no revisions yet
{% include "netbox_checkmk_sync/inc/busy.html" %} {% endblock %}