Monitoring cron jobs

Create a monitor with the same schedule as your crontab entry, then append a success ping after the command.

1. Create the monitor

  1. Open the dashboard
  2. Add a monitor with the cron expression your job already uses
  3. Set grace to cover normal overrun (often 60–300 seconds)
  4. Copy the ping URL

You can also paste a full crontab into the importer; one monitor is created per line.

2. Ping after success

Only ping when the job exits successfully. With &&, a failing command skips the ping and the monitor will go late/down on schedule.

# m h dom mon dow
15 2 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 https://diditcron.com/p/<token> >/dev/null

3. Optional start + fail

15 2 * * * \
  curl -fsS -m 10 https://diditcron.com/p/<token>/start >/dev/null; \
  /usr/local/bin/backup.sh \
    && curl -fsS -m 10 https://diditcron.com/p/<token> >/dev/null \
    || curl -fsS -m 10 -X POST --data "backup failed" https://diditcron.com/p/<token>/fail >/dev/null

Tips

  • Use curl -fsS -m 10 so a hung ping does not block the job forever
  • Match the monitor schedule to crontab; mismatched schedules cause false downs
  • Pause the monitor in the dashboard during planned maintenance