26 lines
845 B
YAML
26 lines
845 B
YAML
# Задания Hermes. Владелец каждого — шина; расписание в одном месте.
|
|
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
|