Cron Heartbeat Calculator
Get the expected interval and grace period to monitor a cron job without false alarms.
Wrap any scheduled command so it reports success or failure to a heartbeat URL. Copy the version for your shell or language.
SensaCat gives every scheduled job a heartbeat URL and alerts your team by email, Slack or Discord when a ping is late or reports a failure.
-f makes curl exit with an error on HTTP failures, -s hides the progress bar so cron doesn’t email it to you, and -S still prints real errors. Add -m to cap how long the ping can take so it never hangs the job.
Usually not. The generated wrappers exit with your command’s exit code, not the ping’s, so a monitoring problem never changes how the job behaves.
The snippet sends a JSON body with status set to failure and the exit code as the message. A ping with an empty body counts as success.
Yes. Use the PowerShell version, which reads $LASTEXITCODE after your script runs and calls Invoke-RestMethod.
Get the expected interval and grace period to monitor a cron job without false alarms.
Check a whole crontab for syntax errors and the mistakes that make jobs fail silently.
Get a temporary URL and inspect the headers and body of every webhook sent to it.