Menu

Site navigation

LivePulser

Cron job monitoring

Know when a jobdoesn't run.

Your scheduled jobs ping LivePulser when they finish. If a ping doesn't arrive on schedule, plus the grace you allow, your team hears about it before anyone notices the missing backup.

Interval or calendar schedules · Grace periods · One request per run
A job scheduled every 10 minutes with a 5 minute grace period. Heartbeats arrived at 02:00, 02:10 and 02:20. The 02:30 run didn't ping, so when its grace period ended at 02:35 LivePulser sent an alert. The 02:40 ping closed the incident.

Schedules

A schedule, a grace period and a ping.

LivePulser knows when each run is due. The ping is the only thing your job has to send.

  • Interval schedules

    Expect a ping every few minutes, hours or days, from one minute up to 30 days apart.

  • Calendar schedules

    Daily, weekly or monthly runs, by date or by weekday such as the last Friday, in your own timezone.

  • Grace period

    Give each run slack before it counts as missed, up to an hour, or up to seven days on a calendar schedule, so a slow job doesn't page anyone.

  • Missed-run alerts

    When a ping doesn't arrive by the end of its grace period, an incident opens and your team is told.

  • Automatic recovery

    The next ping closes the incident and sends a recovery notice (or, if you choose, the next on-schedule ping). A long outage is one incident, not one per run.

  • Rotatable secrets

    Each monitor's ping URL carries a secret you can rotate or revoke at any time from API keys.

Send a heartbeat

One line at the end of the job.

Ping only when the job succeeds, so a failed run is reported the same way as one that never started.

crontab
*/10 * * * * /usr/local/bin/backup.sh && \
  curl -fsS -m 10 https://hb.livepulser.com/v1/ping/<monitor-id>/<secret>
Secret in a header
curl -fsS -m 10 -X POST \
  -H "Authorization: Bearer <secret>" \
  https://hb.livepulser.com/v1/ping/<monitor-id>
PowerShell
.\nightly-export.ps1
if ($?) { Invoke-RestMethod https://hb.livepulser.com/v1/ping/<monitor-id>/<secret> }

How it works

From schedule to alert in three steps.

  1. 01

    Create a heartbeat monitor

    Choose an interval or a calendar schedule, and how much grace to allow.

  2. 02

    Ping at the end of the job

    Add one request to your script, crontab or CI step. GET or POST both work.

  3. 03

    Hear about the run that didn't happen

    If no ping arrives in time, your team gets an alert in email, Slack, PagerDuty and more.

FAQ

Questions about cron job monitoring

Can't find what you're looking for? See the full FAQ or the docs.

What is cron job monitoring?

Cron job monitoring, also called heartbeat monitoring, watches for the jobs that should have run. Your job sends a ping to LivePulser when it finishes. If a ping doesn't arrive on schedule, plus its grace period, LivePulser alerts your team.

How do I send a heartbeat?

Make a GET or POST request to your monitor's ping URL, https://hb.livepulser.com/v1/ping/ followed by the monitor ID and secret. You can also POST to the URL without the secret and send it as a Bearer token.

Can I monitor jobs that run on a calendar, not a fixed interval?

Yes. A calendar schedule takes your timezone and up to ten rules, such as every weekday at 06:00 or the first Monday of each month, and expects a ping for each run.

What is the grace period?

The time LivePulser waits after a run was due before calling it missed. Set it to cover your job's normal running time. It can be from one minute to one hour on an interval schedule, or up to seven days on a calendar schedule.

Does LivePulser see my job's output or how long it ran?

No. LivePulser only sees the pings, so it knows whether each run reported in on time. It doesn't read output or logs, measure run time, or start and stop your jobs.

What happens after an alert?

The incident stays open while pings are missing, without opening a new one for every missed run. The next ping closes it and your team gets a recovery notice. On a calendar schedule you can choose to close it only with a ping during an expected run.

Less uncertainty, more peace of mind

  • No credit cardrequired
  • Freeplan
  • Up to 7regions
  • 13 alertchannels