Correctly set up the analytics timer to run hourly and address issues with script parameter passing. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 7725d830-0400-498d-a538-8a6f833ea045 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/4aeldgV
57 lines
3.4 KiB
Plaintext
57 lines
3.4 KiB
Plaintext
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' |