TCP and DNS checks
An HTTP check needs a web page. A database, a mail server or an SSH host has a port, and a domain has DNS records that must not change by accident. Both are checks like any other: they count as active checks (the HTTP tab of the monitor list), open incidents, and alert your channels.
TCP port
Section titled “TCP port”Add a monitor of the kind TCP port with a host and a port, for example db.example.com and 5432. The check is up
when a connection opens within 5 seconds. A refused connection reads “Connection refused”, a silent one “Connection timed
out”. CronBeat only connects; it sends nothing.
DNS record
Section titled “DNS record”Add a monitor of the kind DNS record with a name, a record type (A, AAAA, CNAME, MX, NS or TXT) and,
optionally, a value the answer must contain.
- Without a value the check is up while the record exists (“No MX record found for example.com” otherwise).
- With a value (for example the address your site must resolve to) a changed answer opens an incident and the message says what came back.
Rules for both
Section titled “Rules for both”- Public targets only. A host that resolves to a private, loopback or link-local address is refused when you save and
again at every check, and so are names that only exist inside networks (
.local,.internal,.svc,.lanand similar). Answers that are private addresses are never shown in an alert. - Interval and grace work as for HTTP checks: at least your plan’s shortest interval and a grace period of at least 1 minute. A failing check is retried once after 3 seconds before it goes down.
- API: send
httpwithurlset totcp://host:portordns://name. For DNS,methodis the record type andexpectedTextthe value the answer must contain. See REST API.

