PORT

PORT (TCP) monitor

Opens a TCP connection to a host:port. Supports two modes — fail if the port is closed (standard) or fail if the port is open (security hygiene).

Standard mode (expect open)

Connects to the target on your configured port with a 10-second timeout. If the connection succeeds, the check is UP. Useful for SSH, Postgres, Redis, custom TCP services, or any port behind a load balancer.

Security-hygiene mode (expect closed)

Set expectOpen: false to invert the check — UP when the port is closed, DOWN when it's reachable. Use it to make sure development ports (database admin UIs, Redis, debug interfaces) haven't been accidentally exposed to the internet.

A common pattern: a parallel PORT monitor with expectOpen: false on port 22 from your production environment, so you get paged the moment SSH gets exposed by a misconfigured security group.

Create one via the API

curl https://monitorah.com/api/v1/monitors \
  -X POST \
  -H "Authorization: Bearer mon_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "My PORT check",
  "type": "PORT",
  "target": "example.com",
  "config": {
    "port": 5432,
    "expectOpen": true
  }
}'

Full reference for this endpoint →

Create a PORT monitor → All docs