{% 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: {{ 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 %}
Monitored via ping only
{% endif %}
{% 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) }} open {% endif %}

{% if events %} {% for e in events %} {% if e.severity != 'info' %} {% endif %} {% else %} {% endfor %}
Severity Type Target Detail Description First 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.consecutive_failures }} {% if e.ticket_id %} #{{ e.ticket_id }} {% else %}–{% endif %}
No active alerts ✔
{% else %}

No active alerts ✔

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