{% extends "base.html" %} {% block title %}Dashboard – GANDALF{% endblock %} {% block content %}
{% if summary.critical %} ● {{ summary.critical }} CRITICAL {% endif %} {% if summary.warning %} ● {{ summary.warning }} WARNING {% endif %} {% if not summary.critical and not summary.warning %} ✔ ALL SYSTEMS NOMINAL {% endif %}
{{ last_check }}

Network Hosts

Internet
UDM-Pro
Agg Switch
PoE Switch
{% for name in snapshot.hosts %}
{% endfor %}
{% for name, host in snapshot.hosts.items() %}
{{ name }} {{ host.status }}
{% endfor %}
{% for name, host in snapshot.hosts.items() %} {% set suppressed = suppressions | selectattr('target_name', 'equalto', name) | list %}
{{ name }} {% if suppressed %} 🔕 {% endif %}
{{ host.ip }} {{ host.source }}
{% if host.interfaces %}
{% for iface, state in host.interfaces.items() | sort %}
{{ iface }} {{ state }}
{% endfor %}
{% else %}
ping-only / no node_exporter
{% endif %}
↗ Links
{% else %}

No host data yet – monitor is initializing.

{% endfor %}
{% if snapshot.unifi %}

UniFi Devices

{% for d in snapshot.unifi %} {% endfor %}
Status Name Type Model IP Actions
{{ 'ONLINE' if d.connected else 'OFFLINE' }} {{ d.name }} {{ d.type }} {{ d.model }} {{ d.ip }} {% if not d.connected %} {% endif %}
{% endif %}

Active Alerts

{% if summary.critical or summary.warning %} {{ (summary.critical or 0) + (summary.warning or 0) }} {% endif %}
{% if events %}
{% for e in events %} {% if e.severity != 'info' %} {% endif %} {% else %} {% endfor %}
Sev Type Target Detail Description First Seen Last Seen Failures Ticket Actions
{{ e.severity }} {{ e.event_type | replace('_', ' ') }} {{ e.target_name }} {{ e.target_detail or '–' }} {{ e.description | truncate(60) }} {{ e.first_seen }} {{ e.last_seen }} {{ e.consecutive_failures }} {% if e.ticket_id %} #{{ e.ticket_id }} {% else %}–{% endif %}
No active alerts ✔
{% else %}

No active alerts ✔

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}