{% extends "base.html" %} {% block title %}System Monitor - Hermetic Suite{% endblock %} {% block content %} {% if active_alerts %}

🚨 Active Alerts

{% for alert in active_alerts %} {% endfor %}
Server Severity Metric Message Since Actions
{% set alert_server = server_lookup.get(alert.server_id) %} {{ alert_server.hostname if alert_server and alert_server.hostname else alert_server.ip_address if alert_server else 'Server #' ~ alert.server_id }} {{ alert.severity|upper }} {{ alert.metric_type }} {{ alert.message }} {{ alert.triggered_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %}

Monitored Servers

{% if monitored_servers %}
{% for item in monitored_servers %} {% set server = item.server %} {% set snapshot = item.snapshot %} {% set metrics = snapshot.metrics if snapshot and snapshot.metrics else {} %} {% set cpu = metrics.get('cpu', {}) %} {% set memory = metrics.get('memory', {}) %} {% set disk = metrics.get('disk', {}) %}

{{ server.hostname or server.ip_address }}

{% if item.alert_count > 0 %} {{ item.alert_count }} alert{{ 's' if item.alert_count > 1 }} {% endif %} {{ snapshot.status if snapshot else 'No data' }}
{% if snapshot and snapshot.status == 'online' %}
CPU
{{ cpu.get('usage_percent', 0)|round(1) }}%
Memory
{{ memory.get('used_percent', 0)|round(1) }}%
{% if disk.get('filesystems') %} {% set root_disk = disk.filesystems|selectattr('mount_point', 'equalto', '/')|first %} {% if root_disk %}
Disk (/)
{{ root_disk.used_percent|round(1) }}%
{% endif %} {% endif %}
Load
{{ cpu.get('load_1', 0)|round(2) }} / {{ cpu.get('cores', 1) }} cores
{% else %}

{% if snapshot %} {{ snapshot.error_message or 'Connection failed' }} {% else %} No metrics collected yet {% endif %}

{% endif %}
{% endfor %}
{% else %}

No servers are being monitored.

Configure Monitoring
{% endif %}
{% if unconfigured_servers %}

Available Servers

These servers have SSH enabled but are not being monitored:

{% for server in unconfigured_servers %} {% endfor %}
Hostname IP Address Actions
{{ server.hostname or '-' }} {{ server.ip_address }}
{% endif %} {% endblock %}