About Healthchecks
Healthchecks is a BSD-licensed Django app for dead man's switch monitoring. Each check has a ping URL, a schedule (a period or a cron expression with time zone) and a grace time; miss the window and Healthchecks sends an alert.
Monitoring jobs from a separate server means a failed host cannot silence its own alarms. A small CloudSat VPS in another region does the job, with SQLite by default and PostgreSQL or MySQL when you need them.
The app then serves port 8000; the first superuser is created on the command line.
What you get with Healthchecks
- Pings by HTTP request or by email
- Period or cron schedules with time zones and grace time
- Start, success and failure signals with run-time tracking
- Alerts through email, Slack, Telegram, Signal, PagerDuty and more
- Teams, projects and read-only API keys
Healthchecks use cases
- Catching backup jobs that silently stopped running
- Watching scheduled ETL and report scripts
- Heartbeats from servers behind NAT that cannot be polled
After you deploy Healthchecks
- Once the console shows Running, create an admin over SSH with
./manage.py createsuperuserin the Healthchecks environment. - Set
SITE_ROOTto your public HTTPS address, plusDEFAULT_FROM_EMAILand theEMAIL_HOSTsettings so login links and alerts can be mailed. - Sign in at
http://<server IP>:8000, add a check and append its ping to your cron line, for example&& curl -fsS -m 10 --retry 5 <ping URL>. - Healthchecks does not terminate TLS itself, so serve it through a reverse proxy with HTTPS.
Healthchecks ports
Open these in your firewall if you use one: 8000/tcp Healthchecks.
Healthchecks FAQ
Why does Healthchecks need sendalerts?
sendalerts is the process that notices checks going down and sends notifications. The docs say it must always run and restart after crashes; the Docker images start it for you.
Can a job report failure explicitly?
Yes. Ping the /fail endpoint, or append a non-zero exit status to the ping URL, and Healthchecks alerts at once instead of waiting for the grace time.
Disclaimer. The Healthchecks project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.