Check settings and snippet builder
Give a schedule and how long the job usually runs, and get the check settings to watch it: the schedule, a grace time that fits, and copy-paste snippets that ping when the job starts, succeeds or fails, for the scheduler you use.
Suggested check
- Kind
- Cron schedule
- Schedule
- 0 3 * * *
- Time zone
- UTC
- Grace
- 15 minutes
- Shortest gap between runs
- 1 day
Snippets
0 3 * * * /usr/local/bin/backup.sh && curl -fsS --max-time 10 --retry 5 --retry-connrefused -o /dev/null "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10"- A failed command sends no ping, so the check goes down when the grace runs out.
- In a crontab line, write % in the command as \%.
How much grace time should a cron check have?
Enough that a normal slow run does not raise a false alert, and short enough that a missed run is noticed before the next one. The builder takes the larger of five minutes and one and a half times the typical run time, capped at half the gap between runs, and never under one minute.
Why ping at the start of a job as well as at the end?
A start ping lets CronMissed time each run and notice a job that started but never finished, such as a backup stuck on a lock. A job that crashes before its end ping then raises an alert after the grace time instead of at the next scheduled run.
Why do the snippets send the last 100 kB of output?
A failure alert is more useful with the error in it. Each ping keeps up to 100 kB of request body, so the scripts send the tail of the output, which is where the error usually is, and keep the request well inside the limit.
Questions and answers
- No. The ping URL stays in your browser and is left out of the shareable link, because the URL is the only credential a check has.
- Plain HTTP pings are redirected to HTTPS, and a client that does not follow the redirect loses the ping. The curl flags retry a failed request a few times so a brief network error does not look like a missed run.
- The builder suggests a simple check instead, which expects a ping every N seconds and suits jobs that repeat at a fixed interval.
Is my ping URL saved or put in the link?
Why does every snippet use HTTPS and retries?
What if my schedule cannot be written as one cron expression?
More free cron tools
Cron expression translator
Translate a cron expression into plain English, field by field, evaluate it for errors and read its next runs in your time zone. Free, in your browser.Cron next run calculator
List the next 10 to 100 runs of a cron expression in any time zone and UTC, on a month calendar, with runs moved or doubled by daylight saving marked.Crontab generator and converter
Build a crontab line with pickers, then see the same schedule written for Quartz, Spring, EventBridge, Vercel, GitHub Actions, Kubernetes and systemd.
Know the moment a scheduled job goes quiet
Each job pings its URL when it runs. When a ping is late or reports a failure, CronMissed alerts you by email, Slack, Discord, Telegram, ntfy or webhook.