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/0d0ad047-ca02-4e39-ba89-09a6a94bdf92 > /dev/null
# using curl: # (make sure it is installed on your system!) curl --retry 3 https://hchk.io/0d0ad047-ca02-4e39-ba89-09a6a94bdf92
# using wget: wget https://hchk.io/0d0ad047-ca02-4e39-ba89-09a6a94bdf92 -O /dev/null
# using urllib2: import urllib2 urllib2.urlopen("https://hchk.io/0d0ad047-ca02-4e39-ba89-09a6a94bdf92")
# using requests: import requests requests.get("https://hchk.io/0d0ad047-ca02-4e39-ba89-09a6a94bdf92")
var http = require('http'); http.get("https://hchk.io/0d0ad047-ca02-4e39-ba89-09a6a94bdf92");
// the server returns appropriate CORS headers so cross-domain AJAX requests should work: var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://hchk.io/0d0ad047-ca02-4e39-ba89-09a6a94bdf92', true); xhr.send(null);
As an alternative to HTTP/HTTPS requests, you can "ping" this check by sending an email message to firstname.lastname@example.org
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.|