Uptime check settings
Check fields
These fields are on the form when you add or edit an uptime check. Open it from the domain's Checks tab. How the check uses them is explained in About uptime checks.
| Field | What it does | Default | Limits |
|---|---|---|---|
| Enabled | Switches the check on or off. Shown when you edit a check. A switched-off check does not run. | On | None |
| Name (optional) | The name shown for the check. | The URL's host and path, without https:// | Up to 255 characters |
| Name on status pages | How this check appears on status pages. A status page can override it. Shown when you edit a check. | The check's name, or Website if it has none | Up to 60 characters |
| URL | The address to request. | https://<your-domain>/ for the first check | Must be http or https, up to 2048 characters, and must resolve to a public address |
| Method | The HTTP method. | GET | GET, POST, PUT or PATCH |
| Headers | Extra request headers, as a name and value. Use Add header to add a row and Remove to delete one. | None | Up to 20 headers. Names use letters, digits and the usual header punctuation. Values are up to 2048 characters on one line |
| Body | The request body. | Empty | Up to 10,000 characters |
| Expected status | The status codes that count as a pass. | 2xx | Comma separated, such as 2xx, 301. Each is a three-digit code or a class like 2xx, starting with 1 to 5 |
| Required text | Text that must appear in the response. | Empty | Up to 255 characters |
| Forbidden text | Text that must not appear in the response. | Empty | Up to 255 characters |
| Timeout (seconds) | How long to wait for the server. | 5 | 1 to 10 |
| Follow redirects | Follows a redirect to its target instead of judging the redirect itself. | On | Up to 5 redirects |
| Watch for unexpected page changes | Learns which third-party hosts the page loads and reports new ones. See About page change detection. | On | Applies to GET checks only |
The form's button reads Create check when you add a check and Save check when you edit one.
How the fields behave
Headers and credentials
Alopex always sends its own User-Agent, Alopex/1.0 (+uptime monitor). A User-Agent header you add is replaced. If your server or firewall allows or blocks by user agent, use this value. Checks come from a single location in the UK, and Alopex does not publish IP addresses, so allow the user agent rather than an address.
If a redirect leaves the original scheme, host and port, Alopex stops sending your Authorization, Proxy-Authorization and Cookie headers. They are not sent on any later hop, even if a redirect returns to the original site.
Body
Alopex sends the body with the Content-Type header you set. If you set none, it sends text/plain. After a redirect with status 303, or a 301 or 302 after a POST, the next request is a GET with no body.
Expected status
A class such as 2xx accepts every code from 200 to 299. A single code such as 301 accepts only that code. With Follow redirects on, the status that is judged is the one at the end of the redirects. With it off, it is the redirect response itself, so a 301 or 302 fails unless you list it.
If a page redirects anonymous visitors to a login page with a 302, you have two choices. Leave Follow redirects on, and the check passes when the login page answers with an expected status such as 200. That also confirms the login page loads, so it is the better choice if you want to know the page works. Or turn Follow redirects off and add 302 to Expected status, for example 2xx, 302. The check then passes on the redirect itself and never requests the login page, so choose this if the redirect is all you want to confirm.
Required text and forbidden text
Both are matched exactly as typed, including capital letters. They are searched in the response body as your server sends it, up to the first 5 MB. Content after that point is not searched.
Timeout
The timeout applies to connecting and to the whole transfer. With redirects, each request gets the full timeout. Alopex follows up to 5 redirects, which is up to 6 requests, so the longest a run can wait on your server is 6 times the timeout, or 60 seconds at the 10-second maximum, plus the time to look up each host name.
Domain settings that apply to every check
Two settings are on the domain, not on the check. Find them under Settings, in General.
| Field | What it does | Default | Choices |
|---|---|---|---|
| Check every | How often uptime checks on the domain run. | 5 minutes | 1, 5, 10, 15, 30 or 60 minutes |
| Consecutive failures before an incident | How many failed runs in a row open an incident. See Domain settings. | 2 | 1 to 10 |
These apply to all the domain's uptime checks. Once a check starts failing, Alopex runs it every minute until it passes, whatever Check every is set to.