
╔═══════════════════════════════════════════════╗
║   ✅ AGGIORNAMENTO COMPLETATO                 ║
╚═══════════════════════════════════════════════╝

📋 VERIFICA SISTEMA:
   • Log backend:  tail -f /var/log/ids/backend.log
   • Log frontend: tail -f /var/log/ids/frontend.log
   • API backend:  curl http://localhost:8000/health
   • Frontend:     curl http://localhost:5000

📊 STATO SERVIZI:
root       20860  0.0  0.0  18344  6400 pts/3    S+   Nov22   0:00 sudo tail -f /var/log/ids/syslog_parser.log
root       20862  0.0  0.0   3088  1536 pts/3    S+   Nov22   0:02 tail -f /var/log/ids/syslog_parser.log
ids        64096  4.0  1.8 1394944 291304 ?      Ssl  12:12   9:44 /opt/ids/python_ml/venv/bin/python3 main.py
ids        64102 16.0  0.1  52084 19456 ?        Ss   12:12  38:36 /opt/ids/python_ml/venv/bin/python3 syslog_parser.py
root       69074  0.0  0.2 731152 33612 pts/0    Rl+  16:13   0:00 /usr/bin/node /usr/bin/npm run dev

[root@ids ids]# sudo /opt/ids/deployment/setup_analytics_timer.sh
╔═══════════════════════════════════════════════╗
║   IDS Analytics Timer Setup                  ║
╚═══════════════════════════════════════════════╝

📋 Copia file systemd...
🔄 Reload systemd daemon...
⚙  Enable e start timer...

📊 Stato timer:
● ids-analytics-aggregator.timer - IDS Analytics Aggregation Timer - Runs every hour
     Loaded: loaded (/etc/systemd/system/ids-analytics-aggregator.timer; enabled; preset: disabled)
     Active: active (waiting) since Mon 2025-11-24 12:13:35 CET; 4h 3min ago
      Until: Mon 2025-11-24 12:13:35 CET; 4h 3min ago
    Trigger: Mon 2025-11-24 17:05:00 CET; 47min left
   Triggers: ● ids-analytics-aggregator.service

Nov 24 12:13:35 ids.alfacom.it systemd[1]: Stopped IDS Analytics Aggregation Timer - Runs every hour.
Nov 24 12:13:35 ids.alfacom.it systemd[1]: Stopping IDS Analytics Aggregation Timer - Runs every hour...
Nov 24 12:13:35 ids.alfacom.it systemd[1]: Started IDS Analytics Aggregation Timer - Runs every hour.

📅 Prossime esecuzioni:
NEXT                        LEFT       LAST                        PASSED    UNIT                           ACTIVATES
Mon 2025-11-24 17:05:00 CET 47min left Mon 2025-11-24 16:05:01 CET 12min ago ids-analytics-aggregator.timer ids-analytics-aggregator.service

1 timers listed.
Pass --all to see loaded but inactive timers, too.

╔═══════════════════════════════════════════════╗
║   ✅ ANALYTICS TIMER CONFIGURATO              ║
╚═══════════════════════════════════════════════╝

📝 Comandi utili:
   Stato timer:        sudo systemctl status ids-analytics-aggregator.timer
   Prossime run:       sudo systemctl list-timers
   Log aggregazione:   sudo journalctl -u ids-analytics-aggregator -f
   Test manuale:       sudo systemctl start ids-analytics-aggregator
