# Widget SentinelMesh — Découverte réseau # À copier dans votre glance.yml # # Prérequis : # - Backend SentinelMesh démarré (port 8080) # - agent-scan-network en cours d'exécution # - Fichier CSS custom copié dans votre répertoire assets Glance # et référencé dans glance.yml : custom-css-file: /assets/sentinelmesh.css - type: custom-api title: Réseau local cache: 30s url: http://sentinelmesh:8080/api/v1/widgets/network template: | {{- $online := .JSON.Int "online" -}} {{- $offline := .JSON.Int "offline" -}} {{- $total := .JSON.Int "total" -}}
{{ $online }} en ligne {{ if gt $offline 0 }} · {{ $offline }} hors ligne{{ end }}  ·  {{ $total }} total {{ if .JSON.Exists "last_scan_at" }} {{ end }}