{% extends "base.html" %} {% block title %}Monitoring{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if system_status == 'normal' %} 🟢 System Normal {% elif system_status == 'warning' %} 🟡 System Warning {% else %} 🔴 System Critical {% endif %} {{ active_alerts }} Aktive Alerts
Letzte Aktualisierung: jetzt
📊 Executive Summary
Aktive Lizenzen
{{ live_metrics.active_licenses or 0 }}
0%
{% if live_metrics.active_licenses > 100 %}
!
{% endif %}
Validierungen (5 Min)
{{ live_metrics.total_validations or 0 }}
0%
Aktive Geräte
{{ live_metrics.unique_devices or 0 }}
0%
Response Zeit
{{ (live_metrics.avg_response_time or 0)|round(1) }}ms
0%
🔄 Activity Stream
{% for event in activity_stream %}
{% if event.event_type == 'validation' %} {% else %} {% endif %} {{ event.customer_name or 'Unbekannt' }} {{ event.license_key[:8] }}...
{% if event.event_type == 'anomaly' %} {{ event.anomaly_type }} {{ event.description }} {% else %} Validierung von {{ event.ip_address }} • Gerät: {{ event.hardware_id[:8] }}... {% endif %}
{{ event.timestamp.strftime('%H:%M:%S') if event.timestamp else '-' }} {% if event.event_type == 'anomaly' and event.severity == 'critical' %}
{% endif %}
{% endfor %} {% if not activity_stream %}

Keine Aktivitäten in den letzten 60 Minuten

{% endif %}
🏆 Top Aktive Lizenzen
{% for license in top_licenses %}
{{ license.customer_name }}
{{ license.device_count }} Geräte • {{ license.validation_count }} Validierungen
{% if license.anomaly_count > 0 %} {{ license.anomaly_count }} ⚠️ {% else %} OK {% endif %}
{% endfor %} {% if not top_licenses %}

Keine aktiven Lizenzen

{% endif %}
🎯 Anomalie-Verteilung
{% if not anomaly_distribution %}

Keine Anomalien erkannt

{% endif %}
🌍 Geografische Verteilung
{% for geo in geo_data[:5] %}
{{ geo.ip_address }} {{ geo.request_count }}
{% endfor %}
{% if geo_data|length > 5 %} +{{ geo_data|length - 5 }} weitere IPs {% endif %}

Ungewöhnliche Verhaltensmuster werden hier angezeigt...

Detaillierte Analyse spezifischer Lizenzen...

Vorhersagen und Kapazitätsplanung...

{% endblock %} {% block extra_js %} {% endblock %}