{# plugins/snmp/templates/snmp/host_panel.html — the SNMP panel on a host's page: the devices bound to this host, or at its address, with their readings in their units, or why they aren't answering. #} {% from "_macros.html" import status_badge, stat_tile %}

SNMP

All devices
{% for d in devices %}
{{ d.name }} {{ d.address }} {% if d.reach == 'up' %}{{ status_badge('up', 'Answering') }} {% elif d.reach == 'down' %}{{ status_badge('down', 'Not answering', title=d.says) }} {% elif d.reach == 'stale' %}{{ status_badge('stale', 'Not polled', title=d.says) }} {% else %}{{ status_badge('pending', 'Not polled yet') }}{% endif %}
{% if d.reach == 'down' %}

{{ d.says }}

{% endif %} {% if d.reach != 'pending' and d.readings %}
{% for r in d.readings %}{{ stat_tile(r.name, r.text) }}{% endfor %}
{% endif %}
{% endfor %}