Monitor cron jobs and backups with heartbeats
The jobs that fail silently are the dangerous ones. Here is how to make them call home.
The Upkeeper team · 15 نوفمبر 2026 · قراءة في 1 دقيقة
Your backup ran every night for a year. Then the disk filled up, and it stopped. Nobody noticed for three weeks.
How heartbeats work
You create a heartbeat monitor with an expected interval, say every 24 hours, and get a unique URL. Your job calls it at the end:
0 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 https://your-domain/hb/your-token
If the call doesn't arrive in time (plus a grace period), you get an alert.
Report failures too
Call /fail when the job fails, and the monitor goes down at once instead of waiting for the deadline.
Measure run time
Call /start at the beginning, and you'll see how long each run took.