HTTP status (http_status)
Requests a path from the device, follows a bounded number of redirects and checks the final status code against the set you expect. Over HTTPS it also reports how long the device's certificate remains valid.
What it looks like

The sensor's page after a few polls, watching a web target the test run starts on this machine. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
status_code | Status code | none | none |
response_ms | Response time | ms | warning above 2000, error above 10000 |
body_bytes | Body size | B | none; only reported with measure_body_size |
cert_days_remaining | Days until the certificate expires | days | warning below 21, error below 7; only over HTTPS |
chain_days_remaining | Days until the earliest expiry in the chain | days | warning below 21, error below 7; only over HTTPS |
response_ms adds up the time of every request in a redirect chain. For the certificate channels see certificate expiry.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
scheme | http | http or https. |
port | 80 for http, 443 for https | TCP port. |
path | / | Path and query. It must start with / and contain no spaces or control characters; percent-encode them. |
method | GET | GET or HEAD. |
expected_status | ["200-399"] | Codes that count as healthy: a code (204), a class (2xx) or an inclusive range (200-399). At least one entry. Any other status makes the sensor Down. |
max_redirects | 5 | Redirects to follow before judging the status, 0 to 10. With 0 a redirect is judged as it is. |
verify_tls | true | Check the server certificate against the system trust store. Turn it off only for internal certificate authorities the probe host does not trust. |
tls_fingerprint | none | Trust exactly the certificate with this SHA-256 fingerprint (colon-separated or plain hex, either case) and no other (on a redirect to another host the pin is not used there), whatever its chain, dates or name say; verify_tls is then not needed. See pinning a certificate. |
measure_body_size | false | Also report body_bytes. This reads the whole body. |
check_certificate | true | With https, also report cert_days_remaining and chain_days_remaining. Turn it off when a tls_cert sensor already watches the same certificate. Ignored with http. |
Suggested interval: 60 seconds. No credential.
Certificate expiry
Over HTTPS the sensor also reports how long the certificate lasts, so one sensor watches both the site and its certificate. The two channels mean exactly what days_remaining and chain_days_remaining of tls_cert mean and carry the same default limits: the days until the server's own certificate expires, and the earliest expiry among all certificates the server sent. An expired certificate gives a negative value; one that is not valid yet reports the days until it becomes valid, negated.
- The certificates are read from the connection the request itself went over, not from a second one.
- They are those of the first request, the one aimed at the device. A redirect can lead to another host (a single sign-on page, a content network) whose certificate is not the device's to report. To watch the certificate on another port of the device, point a second check, or a
tls_cert, at it. - They are read whether or not the certificate is trusted. With
verify_tlson, a certificate the probe host does not trust, or one that has expired, fails the handshake as before, so the poll is a collection failure and the channels are not reported. Withverify_tlsoff or a pin, the dates are reported and an expired or not-yet-valid certificate makes the sensor Down, with the same wording astls_cert. - Over plain HTTP, or with
check_certificateoff, the two channels are not reported at all: they are absent, not zero, so no limit applies to them and no graph shows a false value. - A certificate that cannot be parsed leaves both channels unknown and says so in the message; the status check itself still counts.
What the request looks like
The request goes to the device's address and port. If the device has a host name, it is used in the URL, so the Host header and the TLS server name are right; the connection itself still goes to the stored address. A redirect to the same host keeps connecting to that address; a redirect to another host is resolved normally.
On the target
A web server reachable from the probe host. For HTTPS with verify_tls on, a certificate the probe host trusts and that matches the device's host name. The probe host's trust store is the one in the container image (ca-certificates).
Failures
| Message | Meaning |
|---|---|
HTTP N is not in the expected set [...] | The server answered with an unexpected status. This is a successful poll that is Down, not a collection failure. |
no final response within N ms (kind timeout) | No final response arrived inside the poll timeout, including redirects. |
cannot connect: ... (kind unreachable) | Connection refused, no route or no DNS answer. |
TLS error: ... (kind protocol) | The handshake or certificate check failed. The message names the cause and, for an untrusted certificate, shows the fingerprint the server presented. Pin it with tls_fingerprint, or look at verify_tls for an internal authority. A pin that does not match shows the presented and the pinned fingerprint. |
HTTP N without a usable Location header (kind protocol) | A redirect with no valid target. |
certificate for ... expired N days ago, ... is not valid for another N days, a certificate in the chain ... has expired | Over HTTPS with verify_tls off or a pin: a successful poll that is Down. The status is still reported, and the message starts with it. Renew the certificate or fix the chain the server sends. |
the server's certificate could not be parsed, so its expiry is unknown | The status check counts; the certificate channels are unknown. |