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 2026-02-16 12:40:08 CET; 3h 12min ago
      Until: Mon 2026-02-16 12:40:08 CET; 3h 12min ago
    Trigger: Mon 2026-02-16 16:05:00 CET; 12min left
   Triggers: ● ids-analytics-aggregator.service

Feb 16 12:40:08 ids.alfacom.it systemd[1]: Stopped IDS Analytics Aggregation Timer - Runs every hour.
Feb 16 12:40:08 ids.alfacom.it systemd[1]: Stopping IDS Analytics Aggregation Timer - Runs every hour...
Feb 16 12:40:08 ids.alfacom.it systemd[1]: Started IDS Analytics Aggregation Timer - Runs every hour.

 Prossime esecuzioni:
NEXT                        LEFT       LAST                        PASSED    UNIT                           ACTIVATES
Mon 2026-02-16 16:05:00 CET 12min left Mon 2026-02-16 15:05:00 CET 47min 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

[root@ids ids]# systemctl status ids-analytics-aggregator.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 2026-02-16 12:40:08 CET; 3h 12min ago
      Until: Mon 2026-02-16 12:40:08 CET; 3h 12min ago
    Trigger: Mon 2026-02-16 16:05:00 CET; 11min left
   Triggers: ● ids-analytics-aggregator.service

Feb 16 12:40:08 ids.alfacom.it systemd[1]: Stopped IDS Analytics Aggregation Timer - Runs every hour.
Feb 16 12:40:08 ids.alfacom.it systemd[1]: Stopping IDS Analytics Aggregation Timer - Runs every hour...
Feb 16 12:40:08 ids.alfacom.it systemd[1]: Started IDS Analytics Aggregation Timer - Runs every hour.
[root@ids ids]# cd /opt/ids && ./deployment/run_analytics.sh
Usage: ./deployment/run_analytics.sh {hourly|daily}
[root@ids ids]# cd /opt/ids && ./deployment/run_analytics.sh {1}
Errore: modo deve essere 'hourly' o 'daily'
[root@ids ids]# cd /opt/ids && ./deployment/run_analytics.sh {hourly}
Errore: modo deve essere 'hourly' o 'daily'
[root@ids ids]# cd /opt/ids && ./deployment/run_analytics.sh {hourly=1}
Errore: modo deve essere 'hourly' o 'daily'