Date: 07 janvier 2026 Statut: Termine
Le dashboard de monitoring avait plusieurs problemes :
Fichier: /stock_8to/33800-stack/monitoring/assets/dashboard.css (16 KB)
Contient :
:root) pour couleurs, espacements, ombres.grid-2, .grid-3, .grid-4).card, .card-header, .card-content).status-badge, .status-ok, .status-error, etc.)Fichier: /stock_8to/33800-stack/monitoring/templates.sh
Fonctions disponibles :
html_head "Titre" # Genere <head> avec lien CSS externe
html_header "page" "date" # Header sticky avec navigation
html_page_title "T" "S" # Titre de page avec sous-titre
html_footer # Footer 4 colonnes
html_end # Ferme </body></html>
Navigation supportee : index, shortlinks, montages, nginx, endpoints, doc, models, secrets, crons, needfinder
Fichier: /stock_8to/33800-stack/monitoring/collect.sh
Ajout de la collecte du pool ZFS stock_8to (lignes 175-201) :
# Pool ZFS stock_8to (RAIDZ1 3x4To - stockage frontal)
PVE_STOCK8_STATE=$(ssh_cmd 192.168.1.10 "sudo zpool status stock_8to...")
PVE_STOCK8_INFO=$(ssh_cmd 192.168.1.10 "zfs list stock_8to -H -o used,avail")
Ajout dans la sortie JSON (lignes 1087-1093) :
"stock_8to": {
"state": "$PVE_STOCK8_STATE",
"used": "${PVE_STOCK8_USED}T",
"avail": "${PVE_STOCK8_AVAIL}T",
"total": "${PVE_STOCK8_TOTAL}T",
"percent": $PVE_STOCK8_CAP
}
Fichier: /stock_8to/33800-stack/monitoring/generate.sh
Pages mises a jour avec CSS externe :
| Page | Statut | Notes |
|---|---|---|
| index.html | OK | CSS externe + sticky header |
| montages.html | OK | CSS externe + sticky header |
| nginx.html | OK | CSS externe + sticky header |
| shortlinks.html | OK | Mise a jour header navigation |
| endpoints.html | OK | CSS externe + sticky header |
| doc.html | OK | CSS externe + sticky header |
| models.html | OK | CSS externe + sticky header |
| secrets.html | OK | CSS externe + sticky header |
| crons.html | OK | CSS externe + styles timeline |
| needfinder.html | OK | CSS externe + styles specifiques |
:root {
--bg-primary: #0f172a;
--bg-secondary: #1e293b;
--bg-tertiary: #334155;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--accent-blue: #3b82f6;
--accent-green: #22c55e;
--accent-red: #ef4444;
--accent-orange: #f97316;
--border-color: #334155;
--card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
.sticky-header : Header fixe en haut.header-nav : Navigation principale (Dashboard, Liens, Montages, Nginx, API).nav-secondary : Navigation secondaire (Doc, Modeles, Secrets, Crons, NeedFinder).card : Composant carte standard.status-badge : Badge avec indicateur de statut.grid-{n} : Grilles responsives (n = 2, 3, 4).footer : Footer 4 colonnesBranche: main
Message: "Refonte CSS unifie + collecte stock_8to"
/var/www/dashboard/
├── index.html (11 KB)
├── montages.html (mise a jour)
├── nginx.html (mise a jour)
├── shortlinks.html
├── endpoints.html
├── doc.html
├── models.html
├── secrets.html
├── crons.html
├── needfinder.html
└── assets/
└── style.css (16 KB - copie de dashboard.css)
NeedFinder API : Service non accessible sur 192.168.1.51:5200
curl http://192.168.1.51:5200/api/needs retourne videContainers "offline" : Affichage initial semblait incorrect mais les donnees JSON sont correctes (22 containers UP)
# Regenerer le dashboard
/stock_8to/33800-stack/monitoring/collect.sh
/stock_8to/33800-stack/monitoring/generate.sh
# Deployer en PROD
scp -r /stock_8to/33800-stack/monitoring/output/* gouroubleu@192.168.1.104:/var/www/dashboard/
# Voir les logs
cat /stock_8to/33800-stack/monitoring/logs/$(date +%Y-%m-%d).json