Cron job, systemd timer and CronJob monitoring: Know when a job fails, or never runs.
WatchLog finds every cron job, systemd timer and Kubernetes CronJob on its own and alerts when one fails, misses its run or runs far too long. Nothing to wrap in a ping, no heartbeat URL, no crontab to change.
Scheduled jobs · last 12 runs
- backup.timersystemd timer · worker-1 · Every day at 03:00FailingFailed 3 times in a row. Last good run: 16 NovFailed, exit code 2
- cron.dailycron · db-1 · Every day at 06:25MissedA run was due at 06:25 and none startedSucceeded 2 d ago
- export.phpcron · app-1 · Every hour at :15SlowRunning 4 times longer than usualRunning for 41 min
- nightly-reportCronJob in shop · Every day at 02:00WorkingNothingSucceeded · took 1 min 35 s
The alertbackup.timer failed 3 times in a row on worker-1exit code 2 · last good run 3 d ago · its runs are on the job’s page
An example. Names are illustrative.
systemd timers, cron jobs and Kubernetes CronJobs
Heartbeat monitors only know the jobs you remembered to wrap. WatchLog reads the timers and crontabs themselves, so the job someone added last year is watched as well.
systemd timers
From systemd itself: every timer, enabled or not, its schedule, its random delay and whether it catches up after a reboot, and each run of the unit it starts with its duration and exit code.
cron jobs
From /etc/crontab, /etc/cron.d and the users’ crontabs, matched with the processes cron really starts: a small eBPF program sees each command, so each run has its start, end and exit code.
Kubernetes CronJobs
Each Job a CronJob creates is a run; a failed Job’s pod gives the exit code. The CronJob’s time zone is honoured, and a suspended one is listed as not running.
A cron job’s command line never leaves the server: only a name derived from it is sent.
What each job tells you
One row per job: where it runs, its schedule in words with the next run, its runs on a strip, its last run, and its state.
- FailingIts last run failed: the exit code, how many times in a row, the last good run.
- MissedA run was due and none started, with the server and the agent up; or the timer was disabled after it was due.
- SlowRunning, or ran, 3 times its usual duration and at least 5 minutes longer, once it has 5 good runs.
- RunningA run is under way.
- WorkingNone of these.
- DisabledA timer that is turned off and never ran.
What you get on day one
- Alerts on from the first day
A job whose last run failed, critical at three failures in a row, a run that was due and never started, and one running far longer than usual. One alert per job, not per run; the next good run resolves it.
- Missed is really missed
A random delay, a catch-up after a reboot or a daylight saving change is never “late”, and a run due while the server was off is told apart from one that didn’t start.
- Only a name leaves the server
A cron job is named from its command (pg_dump, artisan schedule:run). Its command line, arguments, environment and user never leave the server, so a password in a crontab stays there.
- Schedules in words
A systemd OnCalendar and a cron expression read the same way: “Every hour at :09 and :39”, “Weekdays at 18:00”, with the next run under it and the expression as written in the tooltip.
- Every run on one strip
Each job’s runs over the last 6 hours, 24 hours or 7 days: green when fine, red when it failed, amber when far slower than usual, a red outline for a missed run, and the next runs ahead.
- Why it broke
Probable cause names the failing timer behind a service that failed, and a systemd timer’s unit log opens on demand from the job’s page.
- Ask your AI
The MCP tool list_scheduled_jobs answers “Did last night’s backup run?” from Claude or ChatGPT, read-only.
Part of one product
The same dashboard, alerts and probable cause for your Kubernetes clusters, Docker hosts and Linux servers.
Kubernetes
Docker
Linux servers
Questions
How does cron job monitoring work without changing my crontab?
The agent reads the crontabs and sees each command cron starts with a small eBPF program, so it knows each run’s start, end and exit code. Nothing to wrap in a ping, no heartbeat URL.
Does it monitor systemd timers?
Yes: every timer, enabled or disabled, with its schedule, random delay and catch-up setting, and each run of the unit it starts, with its exit code.
Does it monitor Kubernetes CronJobs?
Yes. Each Job a CronJob creates is a run, a failed Job’s pod gives the exit code, and spec.timeZone is honoured. A suspended CronJob is listed apart, as not running.
When is a job counted as missed?
When a run was due and none started while the server and the agent were up. A timer’s random delay, a persistent timer’s catch-up after a reboot and the hour around a daylight saving change never count, and neither does a run that was due while the server was off.
Can a password in my crontab leave the server?
No. Only a name derived from the command is sent: the script’s or program’s file name, or a framework’s command. The command line, its arguments, its environment, the user and the output stay on the server.
What if eBPF isn’t available?
cron’s own lines in /var/log/cron or /var/log/syslog give each run, without its exit code. With neither (Debian 12’s default keeps only the journal), cron jobs are listed without runs and never alert. systemd timers don’t need eBPF.
What isn’t covered?
at jobs, cron jobs inside containers that run their own cron, and cron’s CRON_TZ lines, which are evaluated in the server’s time zone. anacron’s jobs are listed as the run-parts cron starts.
What does it cost?
It is in every edition. Self-hosted is free and open source (AGPL-3.0). WatchLog Cloud Free covers 5 nodes or servers; Pro is $3 per node or server a month, $15 minimum.
No more silent cron jobs.
In every edition, free and open source to self-host. Cloud Free covers 5 nodes or servers; Pro is $3 per node or server a month, $15 minimum.