{% extends 'generic/_base.html' %} {% load helpers %} {% block title %}Takeover: {{ object }}{% endblock %} {% block content %}
Most objects exist in NetBox and in Checkmk already. The analysis compares both and changes nothing. The hosts with the same name are then adopted in stages: each stage marks the next hosts and opens their preview; deploying it takes them over, with the usual limits and approvals.
{% if object.folder_mode != "new_hosts" %}| Same name and address | {{ counts.name_ip|default:0 }} |
|---|---|
| Same name, other address | {{ counts.name_only|default:0 }} |
| Cannot be adopted | {{ counts.blocked|default:0 }} (among the two above; see the reason in the table) |
| Same address, other name | {{ counts.ip_only|default:0 }} |
| Only in NetBox | {{ counts.netbox_only|default:0 }} |
| Only in Checkmk | {{ counts.checkmk_only|default:0 }} |
| Managed already | {{ counts.managed|default:0 }} |
| Mapping errors | {{ counts.errors|default:0 }}{% if counts.errors %} (fix them first: Changes){% endif %} |
A stage marks the hosts for adoption and opens their preview. A discarded preview keeps the marks: the next deploy adopts them. Adoptions count as changes against the limits; large stages need approval.
{% if progress.name_ip.marked or progress.name_only.marked %} {% endif %} {% else %}Adopting needs the action adopt on this instance.
{{ settings.prefix }}/id (its identity) and the other
{{ settings.prefix }}/… labels such as site, role and platform. Foreign
labels stay.locked_by = netbox / {{ settings.lock_id }}:
Checkmk shows the host as managed by NetBox and locks the attributes below in its GUI.{{ g }}{% if not forloop.last %}, {% endif %}{% endfor %}.{{ settings.prefix }}_… of the responsible teams.Everything else (parents set by hand, other tags, rules, services) is left alone. Hand back removes all of the above again and leaves the host as a manually configured one; {% if settings.on_removal == "hand_back" %}this instance hands hosts back when their object leaves{% else %}this instance deletes the host when its object leaves (after the grace period); for a takeover Hand back is safer{% endif %}.
{{ section.help }}
| NetBox object | {% endif %} {% if section.key != "netbox_only" %}Checkmk host | {% endif %}Folder | {% if section.key != "checkmk_only" %}NetBox address | {% endif %} {% if section.key != "netbox_only" %}Checkmk address | {% endif %} {% if section.key == "name_ip" or section.key == "name_only" %}Adopting changes | {% endif %}
|---|---|---|---|---|---|
| {% if row.url %}{{ row.name }}{% else %}{{ row.name }}{% endif %} | {% endif %} {% if section.key != "netbox_only" %}{% if row.host %}{{ row.host }}{% else %}{{ row.hosts|join:", " }}{% endif %}{% if row.site %} ({{ row.site }}){% endif %} | {% endif %}{{ row.folder|default:"" }} |
{% if section.key != "checkmk_only" %}{{ row.netbox_ip|placeholder }} | {% endif %} {% if section.key != "netbox_only" %}{{ row.checkmk_ip|placeholder }} | {% endif %} {% if section.key == "name_ip" or section.key == "name_only" %}{% if row.problem %}Not adopted: {{ row.problem }}{% else %}{{ row.changes|join:", "|default:"nothing besides the marker" }}{% if row.kept %} keeps: {{ row.kept }} {% endif %}{% endif %} |
{% endif %}