Keyword filtering

Some tools can send a message when they finish but cannot choose which URL to call. Keyword filtering lets Crony read the message and decide whether it reports a start, a success or a failure.

Keywords

Each check has three lists of keywords, separated by commas: start, success and failure. A keyword matches when the text contains it exactly, including upper and lower case.

Failure keywords are checked first, then success, then start. A text that contains both a failure and a success keyword counts as a failure. A text that matches nothing is logged as ignored, unless the check is set to treat it as a failure.

HTTP bodies

Switch on filtering of HTTP bodies, and a POST to the check's plain URL is classified by its body. Signals that say what they are, such as /fail, /start or an exit status, are not filtered. A GET has no body, so it matches nothing.

SettingValue
Success keywordsbackup complete
Failure keywordsERROR, FATAL
backup.sh 2>&1 | tail -c 10000 | curl -fsS -m 10 --data-binary @- https://staging.crony.sh/ping/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31

A body of backup complete in 4s marks the check up. A body of FATAL: disk full marks it down.

Email

For email pings, filtering can read the subject, the body, or both, with the same keyword lists and the same order.