Create a heartbeat monitor
- Open Monitors, select Add monitor, and choose Heartbeat.
- Enter a Name and choose the Expected interval between successful job completions.
- Set Grace period (seconds) to allow for normal variation. For example, 30 minutes is
1800seconds. - Select Save heartbeat and copy the complete URL from Copy this heartbeat URL now into your job’s secret configuration.
The complete URL is shown once. If you lose it, use Rotate token on the monitor and confirm the change. Save the new URL and update your job immediately; the previous URL stops working.
How a heartbeat works
When you create a heartbeat monitor, SystemPatrol generates a unique URL and displays its raw token once. Your cron job, backup, import, or other scheduled task sends a GET or POST request to that URL after successful completion.
One successful run, one check-in.
- Your job succeedsBackup, cron, or import completes.
- Send GET or POSTCall your saved heartbeat URL.
- 204 · ReceivedNo response body is expected.
- 09:00Check-in receivedThe next interval begins.
- 10:00Next check-in dueThe 5-minute grace begins.
- After 10:05Deadline missedA missing check-in opens an incident.
- 10:12Check-in returnsThe incident recovers.
Send your first heartbeat
Save the complete URL from the dashboard in your job’s secret configuration as HEARTBEAT_URL. The token is already part of that URL. You do not need a login, an authorization header, or a request body.
curl --fail --silent --show-error --max-time 10 \
--request POST "$HEARTBEAT_URL"A GET request works too:
curl --fail --silent --show-error --max-time 10 "$HEARTBEAT_URL"A successful request returns 204 No Content. An empty response is normal. An unknown token, a rotated-out token, or a disabled monitor returns 404.
Call it after the work succeeds
Use && so a failed job does not send a success signal. Replace ./backup.sh with your own command.
./backup.sh && curl --fail --silent --show-error --max-time 10 \
--request POST "$HEARTBEAT_URL"Expected interval and grace
Choose an expected interval of 5 minutes, 15 minutes, 1 hour, 6 hours, or 24 hours. Then set a grace period from 1 minute up to the selected interval to account for normal scheduling variation.
Recovery
A missed heartbeat opens an incident. The next valid heartbeat records recovery and produces at most one recovery email.
Keep the URL secret
The raw heartbeat token is not stored. SystemPatrol stores a SHA-256 hash and supports token rotation if the URL is exposed. Unknown tokens return no monitor details.