{# The device registration (Hani #1 2026-10-19): shown on its own page and as the Details tab of the inventory device. embedded: inside the asset page (tabs become ?tab=details&dtab=..., removal lives in Lifecycle); part="removal": the removal only. #} {% macro value(key, v) -%} {%- if v is none or v == '' -%}— {%- elif v is sameas true -%}Yes{%- elif v is sameas false -%}No {%- elif v is number and (key in ['total', 'used', 'memory_total', 'storage_total', 'rootfs_total', 'swap_total']) -%}{{ v|integration_bytes }} {%- elif v is number and key.endswith('seconds') -%}{{ v|integration_duration }} {%- elif v is number and key.endswith('percent') -%}{{ v }} % {%- elif v is mapping -%}{% for k, x in v.items() %}{{ k|replace('_',' ') }}: {{ x }}{% if not loop.last %}; {% endif %}{% endfor %} {%- elif v is iterable and v is not string -%}{{ v|join(', ') if v else 'None' }} {%- else -%}{{ v }}{%- endif -%} {%- endmacro %} {% macro facts(data) -%}
{% for k, v in data.items() %}
{{ k|replace('_',' ')|capitalize }}
{{ value(k, v) }}
{% endfor %}
{%- endmacro %} {% macro rows(title, items) -%}{% if items %}

{{ title }} {{ items|length }}

{% for k in items[0].keys() %}{% endfor %}{% for item in items %}{% for k, v in item.items() %}{% endfor %}{% endfor %}
{{ k|replace('_',' ')|capitalize }}
{{ value(k, v) }}
{% endif %}{%- endmacro %} {% macro ubuntu_key_block() -%} {% if integration.family == 'ubuntu' and integration.status in ['pending', 'failed'] and public_key %}

Install NEXXVU's public key on the server

Add this line to ~{{ integration.username }}/.ssh/authorized_keys on the server, then choose Validate now. The private key stays in the Portal.

{{ public_key }}
{% endif %} {%- endmacro %} {% macro destination_block() -%} {% if destination.enabled %}{% set d = destination %}

Approved destination

{{ 'Active' if d.active else ('Awaiting approval' if d.pending and d.pending.status == 'requested' else ('Approved — applying' if d.pending else 'Not approved')) }}

This Portal only contacts devices an administrator approved. NEXXVU observes the device identity itself; the approval pins that identity. {{ d.used }} of {{ d.limit }} destinations in use.

{% if d.public and not d.active %}
Internet address. Approving {{ integration.host }} lets this Portal connect to the device over the internet (encrypted, identity pinned, only this address and port).
{% endif %} {% if d.active %}
Pinned identity
{{ d.fingerprint }}
Approved by
{{ d.active.approval.actor or 'converted from the previous policy' }} · {{ d.active.approval.approved_at or '' }} · {{ d.active.approval.source }}
Approval digest
{{ d.active.approval.digest }}
{% if can('destination-revoke') %}
{% endif %} {% elif d.pending %} {% if d.pending.status == 'requested' and d.observed %}
Requested by
{{ d.pending.requested_by }} · {{ d.pending.requested_at }}
Observed identity
{{ d.fingerprint }}
Approval digest
{{ d.observed.digest }}
{% if can('destination-approve') %}
{% else %}

A Portal administrator approves this request.

{% endif %} {% if can('destination-reject') %}
{% endif %} {% elif d.pending.status == 'requested' %}

Requested by {{ d.pending.requested_by }}. NEXXVU is observing the device identity; reload this page in a few seconds.

{% else %}

Approved by {{ d.pending.decided_by }}. The Portal applies the destination and restarts briefly; reload this page in a few seconds.

{% endif %} {% else %} {% if d.latest and d.latest.status == 'failed' %}

The last request did not complete: {{ d.latest.failure }}.

{% endif %} {% if can('destination-request') %}
{% endif %} {% endif %} {% if destination_audit %}
Approval audit
    {% for a in destination_audit %}
  1. {{ a.at }} · {{ a.actor }} · {{ a.action }}{% if a.digest %} · {{ a.digest[:16] }}…{% endif %}{% if a.detail %} · {{ a.detail }}{% endif %}
  2. {% endfor %}
{% endif %}
{% endif %} {%- endmacro %} {% macro removal_block() -%} {% if can('remove') %}

Remove device

{% if embedded %}

Removes {{ integration.name }} from the inventory and from NEXXVU in one step: its monitoring stops, its history stays.

{% endif %}

Removes this device from NEXXVU and deletes its stored credential.{% if removal_commands %} NEXXVU's own account on the device can be removed in the same step (below), or by hand with the commands shown.{% else %} Nothing changes on the device.{% endif %}

{% if linked_assets and not embedded %}

An inventory asset still uses this device ({% for a in linked_assets %}{{ a.name }}{% if not loop.last %}, {% endif %}{% endfor %}). Remove that asset first.

{% elif removal_pending %}

Removal in progress: the address approval is being revoked.

{% elif destination.enabled and destination.active and not can('destination-revoke') %}

This device's address is approved; a Portal administrator removes it (the approval is revoked first).

{% else %}
{% if embedded %}{% endif %} {% if destination.enabled and destination.active %}

Its address is an approved destination. Removing it first revokes that approval (your password is needed; the Portal restarts once), then removes the device, in one step.

{% endif %} {% if integration.family in ['routeros_ssh', 'ubuntu'] and destination.enabled and destination.active and removal_commands %}{% set server = integration.family == 'ubuntu' %}
NEXXVU's account on the {{ 'server' if server else 'router' }} {% if integration.trust.administrator_ref %}

The saved administrator account ({{ integration.trust.administrator_username }}) is used for this approved change; leave the fields below empty.

{% endif %}

Used once, over SSH{% if not integration.trust.administrator_ref %}, and never stored{% endif %}. NEXXVU checks that its account is gone before the device is removed; if it cannot be cleaned, nothing is removed.

{% endif %} {% if destination.enabled and destination.active %}{% endif %}
{% endif %} {% if integration.trust.administrator_ref and can('forget-administrator') %}

Saved administrator account

NEXXVU keeps {{ integration.trust.administrator_username }} encrypted (write-only) for root changes you approve, such as removing its account. It is never used for monitoring.

{% endif %} {% if can('force-delete') and not removal_pending %}

Force delete

For a device you cannot reach or sign in to: NEXXVU removes it from its records{% if destination.enabled and destination.active %} and revokes its address approval{% endif %} without connecting to it.

{% if removal_commands %}
Warning: manual clean-up required. NEXXVU will not connect to the device. This configuration stays active on it and must be removed by hand:
  • User {{ integration.username }}
  • {% if integration.family == 'routeros_ssh' %}
  • SSH key for that user
  • Group nexxvu-ro (if no other user is in it)
  • {% elif integration.family == 'proxmox' %}
  • Its API token (and, when no other Portal uses them, the user and the role NEXXVUAuditor)
  • {% endif %}
If they are not removed, an orphaned account with access remains on the device. Commands to remove them:
{% for line in removal_commands %}{{ line }}
{% endfor %}
{% endif %}
{% if embedded %}{% endif %}
{% endif %} {% if removal_commands %}
Remove NEXXVU's account from the device by hand

Run on {{ integration.name }} as an administrator ({{ {'routeros_ssh': 'RouterOS terminal', 'ubuntu': 'server shell'}.get(integration.family, 'Proxmox node shell') }}):

{% for line in removal_commands %}{{ line }}
{% endfor %}
{% endif %}
{% endif %} {%- endmacro %} {% set tq = '?tab=details&dtab=' if embedded else '?tab=' %} {% if part == 'removal' %}{{ removal_block() }}{% else %}
{% if not embedded %}

Devices · {{ family.label }}

{{ integration.name }}

{{ integration.host }}{% if integration.family != 'ping' %}:{{ integration.port }}{% endif %} · account {{ integration.username }} · ecosystem {{ integration.ecosystem_name or "—" }} · your role {{ role or "none" }}

{{ integration.status_label }}
{% endif %} {% if error %}{% include "_integration_error.html" %}{% elif report.error %}{% set error = report.error %}{% include "_integration_error.html" %}{% endif %} {% set d = destination %}
Status
{{ integration.status_label }}
Last validated
{{ (integration.validated_at or report.checked_at or 'never')|replace('T',' ') }}
Hostname
{{ integration.identity.hostname or "not read yet" }}
Address
{{ integration.host }}{% if integration.family != 'ping' %}:{{ integration.port }}{% endif %}
Platform
{{ ((integration.identity.platform or "") ~ " " ~ (integration.identity.version or ""))|trim or "not read yet" }}
Ecosystem
{{ integration.ecosystem_name or "—" }}
Location
{{ observer.location or "not set" }}
{% if d.enabled %}
Address approval
{{ 'Approved' if d.active else ('Awaiting approval' if d.pending and d.pending.status == 'requested' else ('Applying' if d.pending else 'Not approved')) }}
{% endif %}
In inventory
{% if linked_assets %}{% for a in linked_assets %}{{ a.name }}{% if not loop.last %}, {% endif %}{% endfor %}{% else %}No{% endif %}
{% for n in device_notices %}{% endfor %} {% if request.query_params.get('forced') %}
Force delete started: the address approval is being revoked and the device is then removed. NEXXVU's account is still on the device; the notification (bell) lists the commands that remove it.
{% endif %} {% if removal_pending %}
Removing {{ integration.name }}: its address approval is being revoked. The Portal restarts once, then the device is removed and you return to the device list.{% if request.query_params.get('cleaned') %} NEXXVU's user and key were already removed from the router (checked).{% endif %}
{% endif %} {% if integration.setup_unfinished %}
Setup not finished. The device wizard registered this address but has not created NEXXVU's monitoring account yet, so it cannot be validated.{% if setup_draft %} Resume setup{% endif %} Or remove it under Settings.
{% endif %} {% include "_connection_repair.html" %} {% if tab == 'overview' %} {% if request.query_params.get('replaced') %}
The old key's approval is being withdrawn; the Portal restarts once. Then NEXXVU observes the device's new key and asks for its approval: compare its fingerprint under Approved destination and approve it.
{% endif %} {% include "_connection_check.html" %} {#- Hani #1 2026-10-26 ("where to approve the address? the details tab is so confusing"): while Repair the connection shows the steps in order, the manual alternatives fold away under one line. -#} {% if repair %}
Do the steps by hand instead (copy the key to the server, approve the address separately) {{ ubuntu_key_block() }} {% if destination.enabled and not destination.active and not integration.setup_unfinished %}{{ destination_block() }}{% endif %}
{% else %} {{ ubuntu_key_block() }} {% if destination.enabled and not destination.active and not integration.setup_unfinished %}{{ destination_block() }}{% endif %} {% endif %}

Quick actions

{% if can('validate') and not integration.setup_unfinished %}
{% endif %} {% if setup_draft %}Resume setup{% endif %} See validation results{% if can('credential') %}Replace credential{% endif %}
{% if report.warnings %}
Warnings
{% endif %}

Monitoring relationships

This registration belongs to {{ integration.ecosystem_name or "—" }} and has its own credential, validation, approval and results. Observed from {{ observer.location or "location not set" }}{% if observer.network_zone %} · zone {{ observer.network_zone }}{% endif %}.

{% if relationships %}
{% for r in relationships %}{% endfor %}
EcosystemNameAccountStatus
{{ r.ecosystem_name or "—" }}{{ r.name }}{{ r.username }}{{ r.status_label }}
{% endif %} {% if hidden_relationships %}

Also registered by {{ hidden_relationships }} other relationship{{ 's' if hidden_relationships != 1 }} you cannot see.

{% elif not relationships %}

No other ecosystem or account monitors this device.

{% endif %}
{% if linked_assets %}

Monitored as {% for a in linked_assets %}{{ a.name }}{% if not loop.last %}, {% endif %}{% endfor %}.

{% elif integration.status in ['verified', 'warning'] %}

Validated and not in the inventory yet. Next: add it as an asset and turn on monitoring. In the editor choose Use a validated device and select {{ integration.name }}; its read-only credential is reused, so you do not enter it again.

{% else %}

Validate the device successfully before adding it to inventory.

{% endif %}
{% elif tab == 'validation' %}

Validation {{ fresh_tag("validation:red-hat") }}

{% if report.steps %}
    {% for s in report.steps %}
  1. {{ s.state|capitalize }} {{ s.label }}{% if s.message %}

    {{ s.message }}

    {% endif %}{% if s.state == 'failed' and s.hint %}

    What to do: {{ s.hint }}

    {% endif %}{% for w in s.warnings or [] %}{% endfor %}
  2. {% endfor %}
{% else %}

This device has not been validated yet.

{% endif %} {% if can('validate') %}
{% endif %}
{% if report.privileges and (report.privileges.granted or report.privileges.excess or report.privileges.notes) %}

Access level

Granted
{{ report.privileges.granted|join(', ') or '—' }}
{% if report.privileges.group %}
Group
{{ report.privileges.group }}
{% endif %}
Write-capable (refused)
{{ report.privileges.excess|join(', ') or 'None' }}
Missing
{{ report.privileges.missing|join(', ') or 'None' }}
{% for n in report.privileges.notes %}
Note
{{ n }}
{% endfor %}
{% endif %} {% if report.capabilities %}

Capabilities

{% for c in report.capabilities %}{% endfor %}
CapabilityAvailableReason
{{ c.label }}{{ 'Yes' if c.available else 'No' }}{{ c.reason }}
{% endif %} {% if report.status %}

Status

{{ facts(report.status) }}
{% endif %} {% if report.inventory %}

Inventory

{% for key in ['platform', 'identity', 'hardware', 'software'] %}{% if report.inventory[key] %}

{{ key|capitalize }}

{{ facts(report.inventory[key]) }}{% endif %}{% endfor %} {{ rows('Cluster nodes', report.inventory.nodes if report.inventory.nodes and report.inventory.nodes|length > 1 else []) }} {{ rows('Virtual machines and containers', report.inventory.guests) }} {{ rows('Interfaces', report.inventory.interfaces) }} {{ rows('IP addresses', report.inventory.addresses) }} {{ rows('Storage', report.inventory.storage) }} {{ rows('Filesystems', report.inventory.filesystems) }}
{% endif %}

Device identity

{% if integration.trust.tls_sha256 %}
Pinned certificate SHA-256
{{ integration.trust.tls_sha256 }}
{% endif %} {% if integration.trust.ssh_host_key_fingerprint %}
Pinned SSH host key
{{ integration.trust.ssh_host_key_fingerprint }}
{% endif %} {% if integration.expected_fingerprint %}
Expected fingerprint
{{ integration.expected_fingerprint }}
{% endif %} {% if not integration.trust %}
Pinned identity
None yet. It is pinned on the first successful connection.
{% endif %}

Connection log

{% if device_log %}
    {% for e in device_log %}
  1. {{ e.event }}{% if e.detail %}
    {% for k, v in e.detail.items() if v not in (None, '') %}{{ k }}: {{ v }}{% if not loop.last %} · {% endif %}{% endfor %}{% endif %}
  2. {% endfor %}
{% else %}

Nothing recorded yet.

{% endif %}
{% elif tab == 'credentials' %} {{ ubuntu_key_block() }} {% if integration.setup_unfinished %}

No credential yet

NEXXVU creates this device's monitoring account during setup, so there is nothing to replace.{% if setup_draft %} Resume setup.{% else %} Its setup was cancelled: remove this device under Settings and add it again with Add device.{% endif %}

{% elif can('credential') %}

Replace credential

{% if repair and repair.current in ('address', 'identity') %}{% elif repair and repair.foreign_account %}
Repair the connection can switch this device to NEXXVU's own account ({{ repair.own_account }}) in one click.
{% endif %}
{% if integration.family == 'ubuntu' %}

A new key pair works only once it is on the server: after Replace, use Repair the connection - NEXXVU installs the new key with an administrator account. Without that, the server refuses NEXXVU.

{% else %}{% endif %}
{% endif %} {% if guidance %}
Setup guidance: {{ family.label }}{% include "_integration_guidance.html" %}
{% endif %} {% else %} {% if assignable %}

Assign an ecosystem

This device was added before devices belonged to ecosystems, and this Portal had no ecosystem then. Choose the ecosystem that owns it; nothing else changes.

{% endif %} {{ destination_block() }} {% if embedded %}

Remove

Removing this device, with or without NEXXVU's account on it, is under Lifecycle / Remove.

{% else %}{{ removal_block() }}{% endif %} {% endif %}
{% endif %}