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 https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436 > /dev/null
# using curl: # (make sure it is installed on your system!) curl --retry 3 https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436
# using wget: wget https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436 -O /dev/null
# using urllib2: import urllib2 urllib2.urlopen("https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436")
# using requests: import requests requests.get("https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436")
var http = require('http'); http.get("https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436");
// the server returns appropriate CORS headers so cross-domain AJAX requests should work: var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://hchk.io/5ee01262-6d1f-47d9-9ee8-e5d91fef8436', true); xhr.send(null);
As an alternative to HTTP/HTTPS requests, you can "ping" this check by sending an email message to email@example.com
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.|
You can set up additional ways to get notified:
|Good old email messages.|
|Notifications in Slack channel.|
|Notifications in HipChat channel.|
|Open and resolve incidents in OpsGenie.|
|Open and resolve incidents in PagerDuty.|
|Open and resolve incidents in VictorOps.|
|Instant push notifications with Pushbullet.|
|Instant push notifications with Pushover.|