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/monthCreate 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.
- 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.
- 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.
- 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.
- 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
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 free5 monitors free · Email, Slack, and Discord · No credit card