🏗️ Architecture Brain IA
BRAIN IA WEVADS │
│
┌─────────────────────────────────┐ │
│ CRON JOBS (3) │ │
│ - auto_debug_routines (5min) │ │
│ - proactive_monitor (10min) │ │
│ - auto_system_health (1h) │ │
└─────────────────────────────────┘ │
│ │
↓ │
┌─────────────────────────────────┐ │
│ DATABASE TRIGGERS (4) │ │
│ - auto_full_cleanup │ │
│ - auto_check_missing_vmtas │ │
│ - auto_update_cloud_quotas │ │
│ - auto_create_vmtas │ │
└─────────────────────────────────┘ │
│ │
↓ │
┌─────────────────────────────────┐ │
│ N8N WORKFLOWS (1) │ │
│ - n8n_cloud_monitor (15min) │ │
└─────────────────────────────────┘ │
│ │
↓ │
┌─────────────────────────────────┐ │
│ LOGGING SYSTEM │ │
│ - /var/log/wevads_*.log │ │
│ - admin.ia_routine_logs │ │
└─────────────────────────────────┘ │
│
Target: 210+ Servers Cloud │
Stack: PostgreSQL + PowerMTA + n8n │
│
💻 Commandes CLI Essentielles
Exécution Manuelle Routines
# Auto debug
/opt/wevads/scripts/auto_debug_routines.sh
# Proactive monitor
/opt/wevads/scripts/proactive_monitor.sh
# System health
/opt/wevads/scripts/auto_system_health.sh
Logs Temps Réel
# Auto debug logs
tail -f /var/log/wevads_auto_debug.log
# Proactive logs
tail -f /var/log/wevads_proactive.log
# Health logs
tail -f /var/log/wevads_auto_health.log
# Tous les logs
tail -f /var/log/wevads_*.log
Test Triggers DB
# Full cleanup
sudo -u postgres psql -d adx_system -c "SELECT admin.auto_full_cleanup();"
# Check VMTAs
sudo -u postgres psql -d adx_system -c "SELECT admin.auto_check_missing_vmtas();"
# Update quotas
sudo -u postgres psql -d adx_system -c "SELECT admin.auto_update_cloud_quotas();"
Vérification Cron
# Voir cron jobs actifs
crontab -l | grep wevads
# Éditer cron
crontab -e
Sidebar Management
# Info système sidebar
sidebar info
# Ajouter menu
sidebar add 'Menu|URL|Icon|Parent'
# Fix automatique
sidebar fix
# Vérifier config
sidebar verify