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).
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.
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.
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
}
}'