{# SNMP setup (Tools > SNMP and the Setup milestones after onboarding, Hani #1 2026-10-18): one component. #} {% if snmp_view %}{% set sv = snmp_view %}
SNMP{% if sv.step == 'verified' %} Enabled and verified{% elif sv.step == 'approve' %} Address approval needed{{ fresh_tag("snmp:address-limit") }}{{ fresh_tag("snmp:red-hat") }}{% elif sv.step == 'verify' %} Verify{% endif %} {% if snmp_done %}
{{ snmp_done }}
{% endif %}{% if snmp_error %}{% endif %} {% set dev = 'node' if sv.pve else ('server' if sv.server else 'router') %} {% if sv.installed %}

SNMP on this server was set up when the Portal was installed (nexxvu-portal snmp enable): SNMPv3 only, read only, for NEXXVU's user. To take it off again, run sudo nexxvu-portal snmp remove on the server.

{% endif %}
    {% for key, label in ([('installed', 'Set up at installation')] if sv.installed else ([('ssh', 'SSH address'), ('ssh_approve', 'Approve SSH key')] if (sv.pve or sv.portal) else []) + ([('start', 'Readiness check'), ('install', 'Install SNMP')] if sv.server else [('start', 'Check the router')]) + [('plan', 'Review changes')]) + [('approve', 'Approve SNMP address'), ('verify', 'Verify'), ('verified', 'Done')] %}
  1. {{ label }}
  2. {% endfor %}
{% if sv.checks %}

Readiness check

{% endif %} {% if sv.step == 'ssh' %}
{% if snmp_return %}{% endif %} {% if sv.portal %}

This Portal's own service has no administrator rights, so NEXXVU sets SNMP up on this server the way it does on any Ubuntu server: over SSH to its own address {{ sv.host }}. NEXXVU adds the address (no password is stored) and reads the server's SSH key so an administrator can approve it; an account that can use sudo (for example aiadmin) is entered in the next steps, each time.

{% else %}

NEXXVU monitors Proxmox through its web API, which cannot install packages. Installing SNMP needs SSH as root on {{ sv.host }}. NEXXVU adds the node's SSH address (no password is stored) and reads its SSH key so an administrator can approve it; the root account is entered in the next steps, each time.

{% endif %}
{% elif sv.step == 'ssh_approve' %}{% set d = sv.tools_destination or {} %}

SSH address {{ sv.tools.host }}:{{ sv.tools.port }} (root, for Tools only).

{% if d.pending and d.pending.status == 'requested' and d.observed %}
Node SSH key
{{ d.fingerprint }}

Compare it with the node, for example ssh-keyscan {{ sv.tools.host }} | ssh-keygen -lf - from a computer you trust.

{% if is_admin %}
{% if snmp_return %}{% endif %}
{% else %}

A Portal administrator approves this address.

{% endif %} {% elif d.pending and d.pending.status == 'requested' %}

NEXXVU is reading the node's SSH key…

{% elif d.pending %}

Approved. The Portal applies the address and restarts once; this page continues by itself.

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

The node's SSH port did not answer: {{ d.latest.failure }}.

{% endif %}
{% if snmp_return %}{% endif %}
{% endif %} {% if not (d.pending and d.pending.status != 'requested') %}
{% if snmp_return %}{% endif %}
{% endif %} {% elif sv.step == 'start' %}
{% if snmp_return %}{% endif %}

NEXXVU signs in to {{ sv.host }} with the {{ 'root or sudo' if sv.server else 'administrator' }} account, reads its SNMP settings{{ ' (is the SNMP package installed?)' if sv.server }} and shows exactly what it would change. Nothing is changed in this step. The account is kept in memory until you apply (at most 15 minutes) and never stored.

{% elif sv.step == 'install' %}{% set p = sv.plan %}
{{ dev|capitalize }}
{{ p.identity or sv.host }} · {{ p.version }}
SNMP package
snmpd is not installed
{% if sv.installing %}

Installing the SNMP package on {{ p.identity or sv.host }}… NEXXVU checks every 10 seconds; this page follows by itself.

{% else %}{% if sv.install_error %}{% endif %}

What NEXXVU will run on the server (as root)

{{ p.install_command }}
{% if snmp_return %}{% endif %}
{% endif %}
{% if snmp_return %}{% endif %}
{% elif sv.step == 'plan' and sv.server %}{% set p = sv.plan %}
Server
{{ p.identity or sv.host }} · {{ p.version }}
SNMP package
snmpd {{ p.snmpd_version or '' }} · {{ p.snmpd_active or 'stopped' }}
Portal seen from
{{ p.source or 'unknown' }}
SNMPv3 security
SHA-512 authentication, AES encryption, read only; SNMPv1/v2c switched off
{% if p.firewall_note %}
{{ p.firewall_note }}
{% endif %}

Changes NEXXVU will make on the {{ dev }}

{% for line in p.changes %}{{ line }}
{% endfor %}
{% if snmp_return %}{% endif %}
{% if snmp_return %}{% endif %}
{% elif sv.step == 'plan' %}{% set p = sv.plan %}
Router
{{ p.identity or sv.host }} · RouterOS {{ p.version }}
SNMP now
{{ 'on' if p.snmp_was_on else 'off' }}{% if p.public_active %} · default "public" community active ({{ p.public_addresses or 'any address' }}){% endif %}
Portal seen from
{{ p.source or 'unknown (no address limit)' }}
SNMPv3 security
The strongest authentication the router accepts (SHA-2, otherwise SHA-1; never MD5), AES encryption

Changes NEXXVU will make on the router

{% for line in p.changes %}{{ line }}
{% endfor %}
{% if p.snmp_was_on and p.public_active %}

SNMP is already on with the default "public" community active. NEXXVU leaves it as it is; consider disabling it on the router if nothing else uses it.

{% endif %}
{% if snmp_return %}{% endif %}
{% if snmp_return %}{% endif %}
{% elif sv.step == 'approve' %}{% set d = sv.destination or {} %}

SNMP address {{ sv.snmp.host }}:{{ sv.snmp.port }} (UDP). Only NEXXVU's device reader may reach it, and only after approval.

{% if d.pending and d.pending.status == 'requested' and d.observed %}
Agent identity
{{ d.fingerprint }}

The SNMP engine ID the {{ dev }} reported.{% if sv.server %} On the server: sudo grep oldEngineID /var/lib/snmp/snmpd.conf.{% else %} On the router: /snmp print shows it as engine-id.{% endif %}

{% if is_admin %}
{% if snmp_return %}{% endif %}
{% else %}

A Portal administrator approves this address.

{% endif %} {% elif d.pending and d.pending.status == 'requested' %}

NEXXVU is reading the {{ dev }}'s SNMP engine ID… Reload

{% elif d.pending %}

Approved. The Portal applies the address and restarts once; this page continues by itself. Reload

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

The SNMP agent did not answer: {{ d.latest.failure }}.

The configuration is applied on the {{ dev }}, so the SNMP path from this Portal (UDP 161) is the likely cause: check routers and firewalls between this Portal and {{ sv.snmp.host }}{% if sv.pve %}, and the Proxmox firewall on the node{% endif %}. Then read the engine ID again.

{% endif %}
{% if snmp_return %}{% endif %}
{% endif %} {% elif sv.step == 'verify' %}
{% if snmp_return %}{% endif %}

NEXXVU signs in with its SNMPv3 user and lists what the {{ dev }} offers. Nothing is changed.

{% else %}

SNMPv3 is enabled for NEXXVU on this {{ dev }} (user {{ sv.snmp.username }}, {{ ((sv.snmp.report or {}).get('steps') or [{}])[1].get('message', '') if (sv.snmp.report or {}).get('steps') else '' }} last verified {{ (sv.snmp.validated_at or '')|replace('T', ' ')|truncate(16, True, '', 0) }}).

{% set caps = (sv.snmp.report or {}).get('capabilities') or [] %}{% if caps %}{% endif %}
{% if snmp_return %}{% endif %}
{% endif %}
{% endif %}