Documentation

Heartbeat monitoring

Turn a successful scheduled job into a simple signal and notice when that signal stops.

Create a heartbeat monitor

  1. Open Monitors, select Add monitor, and choose Heartbeat.
  2. Enter a Name and choose the Expected interval between successful job completions.
  3. Set Grace period (seconds) to allow for normal variation. For example, 30 minutes is 1800 seconds.
  4. 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.

From your job to SystemPatrol

One successful run, one check-in.

  1. Your job succeedsBackup, cron, or import completes.
  2. Send GET or POSTCall your saved heartbeat URL.
  3. 204 · ReceivedNo response body is expected.
If the next signal is lateExample: 1-hour interval + 5-minute grace
  1. 09:00Check-in receivedThe next interval begins.
  2. 10:00Next check-in dueThe 5-minute grace begins.
  3. After 10:05Deadline missedA missing check-in opens an incident.
  4. 10:12Check-in returnsThe incident recovers.
Each received heartbeat resets the deadline. A check-in during grace is still on time; after a missed deadline, the next valid heartbeat records recovery.

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.

POST · recommended for a check-in
curl --fail --silent --show-error --max-time 10 \
  --request POST "$HEARTBEAT_URL"

A GET request works too:

GET · also supported
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.

Shell example
./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.

Example: A nightly backup can use a 24-hour interval and a 30-minute grace period. A missed signal after that window opens an incident.

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.

Back to documentation