Cron Monitoring. Get Notified When Your Cron Jobs Fail.

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.

Here's a unique ping address for you:

# m h dom mon dow command
  8 6 *   *   *   /home/user/backup.sh && curl -fsS --retry 3 https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304 > /dev/null
# using curl:
# (make sure it is installed on your system!)
curl --retry 3 https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304
# using wget:
wget https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304 -O /dev/null
# urllib with python 3.x:
import urllib.request
urllib.request.urlopen("https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304")

# urllib with python 2.x:
import urllib
urllib.urlopen("https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304")
# using requests:
import requests
requests.get("https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304")
require 'net/http'
require 'uri'

Net::HTTP.get(URI.parse('https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304'))
var https = require('https');
https.get("https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304");
file_get_contents('https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304');
// the server returns appropriate CORS headers so cross-domain AJAX requests should work:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304', true);
xhr.send(null);
# inside a PowerShell script:
Invoke-RestMethod https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304
# Without an underlying script, passing the command to PowerShell directly:
powershell.exe -command &{Invoke-RestMethod https://ping.hostux.info/ping/28766643-64a5-475b-a39e-9d044ed1a304}

As an alternative to HTTP/HTTPS requests, you can "ping" this check by sending an email message to 28766643-64a5-475b-a39e-9d044ed1a304@ping.hostux.info

E-mail Address to Receive Alerts:

@

A quick peek of what's inside:

My Checks page

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 the periodicity and duration of your tasks.

Period/Grace Time dialog
Each check has configurable Period and Grace Time parameters. Depending on these parameters and time since the last ping, the check is in one of the following states:
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", Ping Hostux.social sends you a notification.
Cron dialog

Alternatively, you can define the expected ping dates and times using a cron expression. See Cron Syntax Cheatsheet for the supported syntax features.

Grace Time specifies how "late" a ping can be before you will be alerted. Set it to be a little above the expected duration of your cron job.

Channels page

You can set up additional ways to get notified:

Email icon Good old email messages.
Webhook icon HTTP webhooks.
Slack icon Notifications in Slack channel.
Telegram icon Notifications to a Telegram group or user.
PagerTree icon Open and resolve incidents in PagerTree.
HipChat icon Notifications in HipChat channel.
VictorOps icon Open and resolve incidents in VictorOps.
OpsGenie icon Open and resolve incidents in OpsGenie.