Fichiers crees :
/tmp/dashboard-33800/montages.html - Page Montages & Symlinks/tmp/dashboard-33800/nginx.html - Page Sites NginxContenu montages.html :
Contenu nginx.html :
Pages modifiees (7 au total) :
Modifications :
Probleme :
dashboard.33800.nowhere84.com.log etait vide (0 bytes)Cause :
collect.sh ligne 439 ne cherchait que dans /var/log/nginx/access.log/var/log/nginx/dashboard.access.logSolution implementee :
# Avant (ligne 439)
ssh_cmd nginx.local "sudo grep -E '\"[^\"]*$site[^\"]*\"' /var/log/nginx/access.log"
# Apres
site_short=$(echo "$site" | cut -d'.' -f1)
ssh_cmd nginx.local "
if [ -f /var/log/nginx/${site_short}.access.log ]; then
sudo tail -300 /var/log/nginx/${site_short}.access.log
else
sudo grep -E '\"[^\"]*$site[^\"]*\"' /var/log/nginx/access.log | tail -300
fi
"
Fichier modifie :
/mnt/stock_36to/data/33800-stack/monitoring/collect.sh (lignes 438-447)Resultat :
dashboard.33800.nowhere84.com.log : 30 Ko (avant: 0 bytes)Probleme : Page nginx.html affichait tableau vide
Cause : Mauvais chemin JSON (.nginx.sites au lieu de .servers.nginx.sites)
Solution : Correction des requetes jq dans generate.sh
| Fichier | Modifications |
|---|---|
/mnt/stock_36to/data/33800-stack/monitoring/generate.sh |
+montages.html, +nginx.html, headers/footers uniformises, filtres nginx |
/mnt/stock_36to/data/33800-stack/monitoring/collect.sh |
Fix collecte logs sites avec fichiers dedies |
Les sites ayant des fichiers de log dedies sur nginx :
/mnt/stock_36to/data/33800-stack/monitoring/
├── collect.sh # Collecte donnees de tous les serveurs (cron 5min)
├── generate.sh # Genere les 7 pages HTML du dashboard
├── current.json # Donnees collectees (source pour generate.sh)
├── domain_logs/ # Logs par domaine (300 dernieres lignes chacun)
└── history/ # Historique JSON
| Page | URL | Description |
|---|---|---|
| index.html | /dashboard | Vue principale serveurs |
| doc.html | /doc | Documentation infra |
| models.html | /models | Guide modeles IA (Ollama, Whisper, YOLO, ComfyUI) |
| secrets.html | /secrets | Credentials et tokens |
| montages.html | /montages | Montages NFS, symlinks, volumes Docker |
| nginx.html | /nginx | Sites Nginx avec filtres |
| endpoints.html | /endpoints | APIs et services exposes |
Un plan existe dans /home/gouroubleu/.claude/plans/soft-marinating-yao.md pour deployer :
Status : Non implemente - L'utilisateur doit d'abord :
# Regenerer dashboard manuellement
/mnt/stock_36to/data/33800-stack/monitoring/collect.sh
# Voir logs collectes
ls -la /mnt/stock_36to/data/33800-stack/monitoring/domain_logs/
# Voir donnees JSON actuelles
cat /mnt/stock_36to/data/33800-stack/monitoring/current.json | jq .
# Tester page en local
cat /tmp/dashboard-33800/nginx.html
*/5 * * * * /mnt/stock_36to/data/33800-stack/monitoring/collect.sh
Le dashboard se met a jour automatiquement toutes les 5 minutes.
Toutes les pages ont maintenant la meme barre de navigation :
Dashboard | Documentation | Modeles IA | Secrets | Montages | Sites Nginx | Endpoints