Cron Job Monitoring

Get alerted when a cron job misses its check-in.

Keep your existing scheduler. Send a heartbeat after required work succeeds, and PingCron watches for the next check-in. If it is missing beyond your configured grace period, PingCron can queue an alert to your saved destinations.

5 monitors free · Email, Slack, and Discord · No credit card

Know when expected completion goes missing.

Cron logs and job output help investigate failures. An independent heartbeat monitor also watches for the signal that never arrives when a host is offline, a scheduler stops, or work fails before completion.

Use it for recurring backups, syncs, reports, or billing checks. A missing heartbeat tells you to investigate the workload and reporting path; it does not identify the cause or prove that output is correct.

Start free. Pay when the extra capacity earns its place.

Free includes 5 monitors, 7-day receipt history, and email, Slack, and Discord alerts. Pro is $9.99/month for up to 50 monitors, 30-day receipt history, and custom outbound webhooks for one account owner.

Choose Pro for more than five independently monitored jobs, longer retained history, or webhooks. Stay on Free if it fits. Shared account access starts on Team.

Choose Pro — $9.99/month

Create your account, then continue to checkout for the paid subscription.

Setup

Connect one cron job and verify its next run.

Create a monitor and get its private success URL. Match the job’s schedule and timezone; allow grace for normal runtime and delay. Supply PINGCRON_URL to the scheduled process.

This standalone wrapper preserves the job’s exit status and sends success only after a zero exit. Failed work produces no success check-in; missed-run detection applies after the expected time and grace. It does not restart the job.

Real-world examples

1. Save as /opt/jobs/monitored-job.sh and replace the workload

#!/bin/sh
# Replace with your real command; it must exit nonzero on failure.
/path/to/your-job
job_status=$?

if [ "$job_status" -eq 0 ]; then
  if [ -z "${PINGCRON_URL:-}" ]; then
    printf '%s\n' 'Heartbeat not configured; check PINGCRON_URL' >&2
  elif http_status=$(curl -q --silent --output /dev/null \
      --write-out '%{http_code}' --connect-timeout 3 --max-time 10 \
      -- "$PINGCRON_URL"); then
    case "$http_status" in
      2??) ;;
      *) printf '%s\n' 'Work completed, but heartbeat delivery failed' >&2 ;;
    esac
  else
    printf '%s\n' 'Work completed, but heartbeat delivery failed' >&2
  fi
fi
exit "$job_status"

2. User crontab: one hourly entry, on one physical line

0 * * * * /bin/sh /opt/jobs/monitored-job.sh

Verify the work, the receipt, and the alert.

  1. Install under the scheduler’s account. Replace the placeholder with your real command. Set its working directory and dependencies; required work must finish and return nonzero on failure. Keep one scheduler entry per job, and separate monitors for independent jobs.
  2. Supply the private URL. Use the scheduler’s secret configuration or a protected environment file your launcher loads. An interactive shell export alone will not configure cron. Keep URLs out of public code and logs.
  3. Check actual completion. Inspect the job’s output and its first successful heartbeat. Then confirm a later automatic run. The example runs hourly in the scheduler’s timezone; match that expectation in PingCron.
  4. Test your alert destination. Save the account’s notification settings, send the labeled test, and confirm receipt. Set up and verify an alert destination. Test missed-run detection with an isolated short-interval monitor.

The heartbeat request has a 3-second connection limit and a 10-second total limit; these do not limit the workload. It accepts only 2xx responses, does not follow redirects or load curl’s default config, discards the response body, and emits a generic warning if reporting fails.

Need start/failure reporting or more schedule examples? Read the complete cron monitoring guide. curl option reference.

FAQ

No. Your scheduler runs the work. PingCron receives HTTP check-ins and monitors their expected timing. It does not replace cron, retry failed work, or validate the data your job produced.
After the expected time and grace, an overdue monitor is eligible for detection by the periodic checker. Queue processing, retries, and your notification provider affect delivery. A successful check-in can return a down monitor to up and queue recovery.
Yes. A /fail check-in can mark a monitor down and queue an alert when it transitions from a non-down state. Repeated failures while already down do not create a new down notification each time. The starter example sends success only; use the detailed monitoring guide for start and failure reporting.
Use a cron expression and matching timezone for fixed clock times. An interval measures elapsed time from a receipt, so 1d is not the same as a fixed daily appointment across timezone or daylight-saving changes. Choose grace for expected runtime and scheduling delay.

Related monitoring guides

Verify one real cron job before adding the rest.

Confirm its scheduled heartbeat and your alert destination. Start free, then choose Pro when more jobs, longer history, or custom webhooks meet a real need.

Monitor one cron job free

5 monitors free · Email, Slack, and Discord · No credit card