{# plugins/snmp/templates/snmp/device.html โ one SNMP device (milestone 491): what its newest poll found, then a small chart per reading in that reading's own unit, on a dated axis. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header, status_badge %} {% block title %}SNMP โ {{ device.name }} โ Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("SNMP", "/plugins/snmp/"), (device.name, "")]) }}{% endblock %} {% block content %} {% call page_header(device.name, device.address ~ ((":" ~ device.port) if device.port != 161 else "") ~ " ยท SNMP v" ~ device.version) %} {% for h in ranges %} {% if h < 168 %}{{ h }}h{% else %}7d{% endif %} {% endfor %} {% if session.user_role == 'admin' %}Edit{% endif %} {% endcall %}
{% if device.reach == 'up' %}{{ status_badge('up', 'Answering') }} polled {{ device.polled_at|ago }} {% elif device.reach == 'down' %}{{ status_badge('down', 'Not answering') }} {{ device.says }} {% if device.ok_at %}Last answered {{ device.ok_at|ago }}.{% else %}It has never answered.{% endif %} {% elif device.reach == 'stale' %}{{ status_badge('stale', 'Not polled') }} {{ device.says }} {% else %}{{ status_badge('pending', 'Not polled yet') }} The first poll runs within a minute of saving.{% endif %}
{% if device.missing %}Not answered by this device: {{ device.missing|join(", ") }}.
{% endif %} {% if charts %}