← Docs

Quick start: monitor your first cron job in 2 minutes

Heartbeat is a dead-man's switch for scheduled jobs. Your job pings a URL each time it runs; if a ping is late, you get alerted.

1. Create a free account

Sign up with an email and password. No card required.

2. Create a check

Click New check. Give it a name, choose how often the job runs (for example 1d) and a grace time (for example 1h: how late a ping may be before we alert).

3. Add the ping to your job

Copy the ping URL from the check page. It looks like:

https://heartbeat-monitor.morristech.ca/ping/YOUR-CHECK-ID

Add it to the end of your script, only on success:

/usr/local/bin/backup.sh && curl -fsS -m 10 --retry 5 -o /dev/null https://heartbeat-monitor.morristech.ca/ping/YOUR-CHECK-ID

4. Test it

Run the command once. The check turns green. Stop pinging and, once the period plus grace has passed, you'll get an email, and another when pings resume.

Next: monitor a cron job with curl, start, fail and run-time pings, the API.