Make a HTTP GET request to this address from your cron job, daemon, script or long running task. When this address is not requested for a set time period, you will get alerted. Below are snippets that are ready to be copy/pasted into your own scripts.
# m h dom mon dow command 8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 /localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b > /dev/null
# using curl: # (make sure it is installed on your system!) curl --retry 3 /localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b
# using wget: wget /localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b -O /dev/null
# using urllib2: import urllib2 urllib2.urlopen("/localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b")
# using requests: import requests requests.get("/localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b")
var https = require('https'); https.get("/localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b");
/ the server returns appropriate CORS headers so cross-domain AJAX requests should work: var xhr = new XMLHttpRequest(); xhr.open('GET', '/localhost:8000/ping/5d917af6-de67-476d-a129-00ab3aef417b', true); xhr.send(null);
As an alternative to HTTP/HTTPS requests, you can "ping" this check by sending an email message to 5d917af6-de67-476d-a129-00ab3aef417b@localhost
A list of your checks, one for each Cron job, daemon or periodically running task you want to monitor.
Give names to your checks to easily recognize them later. Adjust Period and Grace time to match periodicity and duration of your tasks.
|New. A check that has been created, but has not received any pings yet.|
|Up. Time since last ping has not exceeded Period.|
|Late. Time since last ping has exceeded Period, but has not yet exceeded Period + Grace.|
|Down. Time since last ping has exceeded Period + Grace. When check goes from "Late" to "Down", HealthChecks sends you a notification.|