Date : 13/01/2026 13:35 Duree : ~15 min Statut : TERMINE
Centraliser les IPs et configurations du dashboard dans un fichier config.json.
Fichier : /stock_8to/33800-stack/monitoring/config.json
Contenu :
hosts : 9 machines avec IP, mDNS, port_web, labelservices : 14 services avec host, port, domaindeploy : config deploiement (nginx_host, user)footer : listes pour generation dynamiqueFonctions ajoutees :
get_config() # Lire valeur depuis config.json
get_host_ip() # Obtenir IP d'un host
get_host_port() # Obtenir port web d'un host
get_host_label() # Obtenir label d'un host
get_service_domain() # Obtenir domaine d'un service
Modifications :
deploy_page() : Lit nginx IP depuis config.jsongen_footer_full() : Genere liens dynamiquement depuis config.json./generate.sh # OK - toutes les pages generees et deployees
| Fichier | Action |
|---|---|
/stock_8to/33800-stack/monitoring/config.json |
Cree |
/stock_8to/33800-stack/monitoring/generate.d/_common.sh |
Modifie |
deploy_page() : Tous les scripts (12) utilisent cette fonction pour deployer sur nginx. L'IP est maintenant lue depuis config.json.
gen_footer_full() : Fonction prete mais non utilisee par les scripts actuels (ils ont leurs propres footers). Disponible pour refactoring futur.