79 lines
2.1 KiB
YAML
79 lines
2.1 KiB
YAML
backup-heartbeat:
|
|
command: /usr/local/bin/backup-heartbeat.sh
|
|
every_seconds: 1800
|
|
timeout: 120
|
|
retries: 1
|
|
updates-check:
|
|
command: /opt/music-tools/venv/bin/python /opt/hub-core/check_updates.py
|
|
every_seconds: 21600
|
|
timeout: 900
|
|
retries: 1
|
|
disk-trend:
|
|
command: df -h / /mnt/media /mnt/archive | tail -3
|
|
every_seconds: 3600
|
|
notify_on_success: false
|
|
timeout: 30
|
|
retries: 0
|
|
verify-services:
|
|
command: curl -s --max-time 20 http://127.0.0.1:9120/status.json | /opt/music-tools/venv/bin/python
|
|
-c "import json,sys; d=json.load(sys.stdin); bad=[s['name'] for s in d.get('services',[])
|
|
if not s.get('up')]; print('лежат:', bad or 'нет')"
|
|
every_seconds: 3600
|
|
timeout: 60
|
|
retries: 1
|
|
update-plan:
|
|
command: /opt/music-tools/venv/bin/python /opt/hub-core/update_plan.py
|
|
daily_at: 08:45
|
|
timeout: 120
|
|
retries: 0
|
|
notify_on_success: false
|
|
home-heartbeat:
|
|
command: ssh -o BatchMode=yes -o ConnectTimeout=10 root@193.233.210.184 'date +%s
|
|
> /var/lib/home-hb'
|
|
every_seconds: 300
|
|
timeout: 40
|
|
retries: 1
|
|
export-service-metrics:
|
|
command: /usr/bin/python3 /opt/buryan-hub/scripts/export-service-metrics.py
|
|
every_seconds: 120
|
|
timeout: 180
|
|
retries: 1
|
|
direct-health-check:
|
|
command: /usr/bin/python3 /opt/buryan-hub/scripts/direct-health-check.py
|
|
every_seconds: 300
|
|
timeout: 180
|
|
retries: 1
|
|
check-services:
|
|
command: /opt/buryan-hub/scripts/check-services.sh
|
|
every_seconds: 300
|
|
timeout: 240
|
|
retries: 1
|
|
swarm-watchdog:
|
|
command: /opt/buryan-hub/scripts/swarm-watchdog.sh
|
|
every_seconds: 60
|
|
timeout: 120
|
|
retries: 0
|
|
audit-targets:
|
|
command: /usr/bin/python3 /opt/buryan-hub/scripts/audit-targets.py
|
|
daily_at: "07:15"
|
|
timeout: 300
|
|
retries: 0
|
|
ai-digest:
|
|
command: /usr/bin/python3 /opt/hermes/hermes_ai_digest.py
|
|
every_seconds: 3600
|
|
notify_on_success: false
|
|
timeout: 300
|
|
retries: 0
|
|
media-digest:
|
|
command: /opt/music-tools/venv/bin/python /opt/hermes/media_digest.py
|
|
daily_at: 09:30
|
|
notify_on_success: false
|
|
timeout: 180
|
|
retries: 1
|
|
hygiene-scan:
|
|
command: /root/buryan-infra/ops/scripts/hygiene_job.sh
|
|
daily_at: 07:20
|
|
notify_on_success: false
|
|
timeout: 900
|
|
retries: 0
|