33800 Docs

← Retour

Task : Phase 4 - Script Verification Dashboard

Date : 13/01/2026 13:55 Duree : ~10 min Statut : TERMINE


Objectif

Creer un script de verification automatique de coherence du dashboard.


Realisations

Script verify-dashboard.sh

Fichier : /stock_8to/33800-stack/monitoring/verify-dashboard.sh

Verifications effectuees :

Check Description
Fichiers requis config.json, current.json, generate.d/
Config valide JSON valide, sections requises
Hosts critiques pve, nginx, prod-portainer dans config.json
VMs coherentes VMs de current.json presentes dans config.json
Containers critiques ntfy, apprise, redis, prometheus, grafana actifs
IPs hardcodees Detection dans generate.d/ (hors doc statique)
Fraicheur current.json < 2h (sinon warning)

Integration Cron

Fichier : /etc/cron.d/verify-dashboard

# Verification coherence dashboard - hebdomadaire (dimanche 6h)
0 6 * * 0 gouroubleu /stock_8to/.../verify-dashboard.sh >> /var/log/verify-dashboard.log 2>&1

Notifications

En cas d'erreurs, notification envoyee via notif-logger (ntfy).


Resultats Test

===========================================
RESUME VERIFICATION DASHBOARD
===========================================

OK avec 5 warning(s)

Warnings detectes (IPs hardcodees restantes) :


Usage

# Execution manuelle
/stock_8to/33800-stack/monitoring/verify-dashboard.sh

# Voir logs
cat /var/log/verify-dashboard.log

Fichiers Crees

Fichier Description
verify-dashboard.sh Script de verification
/etc/cron.d/verify-dashboard Cron hebdomadaire

Verification Donnees Reelles (14:15)

Verification manuelle de la coherence des donnees affichees vs realite :

Donnee JSON Reel Statut
PVE RAM 64% 64% OK
Proxmox 155 RAM 80% 80% OK
IPs config.json 9 hosts Tous pingables OK
Syncthing Up Up 18 hours OK
Ollama Accessible 10+ modeles OK
Redis PROD ok, 1.04MB Up 22h (healthy) OK
Rsync cron ok Run 14:00 OK
ZFS pools ONLINE ONLINE OK

Conclusion : Toutes les donnees du dashboard sont exactes et correspondent a l'etat reel de l'infrastructure.