{% extends "base.html" %} {% block title %}Supervision - Tableau de bord{% endblock %} {% block content %}

Tableau de bord {% if metrics and metrics.hostname %} — {{ metrics.hostname }} {% endif %}

{% if metrics and metrics.monitoring_active %} {% else %} {% endif %}
{% if not metrics %}
Collecte des metriques en cours...
{% else %}
{{ metrics.hostname }} {{ metrics.os }} Uptime: {{ metrics.uptime }} {{ metrics.cpu.cores }} coeurs {{ metrics.ram.total_gb }} Go RAM
CPU
{{ metrics.cpu.status }}
{{ metrics.cpu.percent }}%
Seuil: {{ metrics.cpu.threshold }}%
RAM
{{ metrics.ram.status }}
{{ metrics.ram.percent }}%
{{ metrics.ram.used_gb }} / {{ metrics.ram.total_gb }} Go — Seuil: {{ metrics.ram.threshold }}%
{% for disk in metrics.disks %}
{{ disk.drive }}
{{ disk.status }}
{{ disk.percent }}%
{{ disk.used_gb }} / {{ disk.total_gb }} Go ({{ disk.free_gb }} Go libres) — Seuil: {{ disk.threshold }}%
{% endfor %}
Processus surveilles
{% for proc in metrics.processes %} {% endfor %}
Processus Statut Instances Memoire CPU PID(s)
{{ proc.name }}
pattern: {{ proc.pattern }}
{% if not proc.enabled %} Desactive {% elif proc.running %} Actif {% else %} Arrete {% endif %} {{ proc.instance_count }} {{ proc.total_memory_mb }} Mo {% if proc.memory_threshold_mb > 0 %}
seuil: {{ proc.memory_threshold_mb }} Mo {% endif %}
{{ proc.total_cpu_percent }}% {{ proc.pids | join(', ') }}
Alertes recentes
Voir tout
Aucune alerte recente.
{% endif %} {% endblock %} {% block scripts %} {% endblock %}