Heartbeats for cron jobs and backups
Last updated 5 December 2026
A heartbeat catches jobs that silently stop running. Your job calls a URL when it finishes. If the call doesn't arrive in time, you get an alert.
Create one
On Monitors, click Add monitor and choose Heartbeat. Give it a name, how often the job runs, and a grace period for jobs that run long. You get a ping URL like https://app.uptimesage.com/ping/your-token. GET, HEAD and POST all work.
A new heartbeat waits for its first ping, so setting it up never alerts. After that, no ping within the period plus grace means down. The next ping brings it back up and sends a recovery alert.
crontab
0 2 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://app.uptimesage.com/ping/your-token >/dev/null
The && sends the ping only when the job exits cleanly, so a failing job alerts you too.
systemd timer
Add a second line to the service the timer starts:
ExecStart=/usr/local/bin/backup.shExecStartPost=/usr/bin/curl -fsS -m 10 --retry 3 https://app.uptimesage.com/ping/your-token
ExecStartPost runs only after ExecStart succeeds.
GitHub Actions
As the last step of a scheduled workflow:
- run: curl -fsS -m 10 --retry 3 https://app.uptimesage.com/ping/${{ secrets.UPTIMESAGE_PING }}
Keep the ping URL in a repository secret.
Kubernetes CronJob
Chain the ping after the job's command, like backup.sh && wget -qO- https://app.uptimesage.com/ping/your-token, or add it as the last command in the container.
Tips
- Set the grace period a bit longer than your slowest normal run.
- Pause a heartbeat, or schedule maintenance, while you work on the job.
- Heartbeats count as monitors in your plan.