Port monitoring: know when a service stops listening
Many outages are a closed port, not a dead server. A port monitor checks the exact door your users use.
What a port monitor does
A port monitor opens a TCP connection to a host and port. If the connection succeeds, the service is listening. If it is refused or times out, Uptimecat counts a failure and alerts you after your retries.
This works for any TCP service: SSH, SMTP, IMAP, PostgreSQL, MySQL, Redis, game servers and custom daemons. See TCP monitoring for more on the protocol side.
How to add one
- Add a monitor and choose TCP Port.
- Enter the hostname or IP and the port number.
- Choose the interval and retries.
- Select alert channels and save.
Common ports
Security note
A port that is open to the internet can be probed by anyone. Do not expose a database only to make it monitorable. Run a small job inside your network that calls a heartbeat URL instead.
Choosing what to check
Pick the ports that users or systems actually depend on. A web server may expose 80 and 443, but only 443 needs a monitor if 80 only redirects. A mail server needs the submission port you tell customers to use, not every port it opens.
Check the same port from the same name your users use. If clients connect to mail.example.com, monitor that name, not a raw IP. That way you also catch DNS mistakes.
Set the timeout low enough to be useful and high enough to avoid false alarms, for example five to ten seconds for a remote service. Two retries make the monitor robust against brief packet loss without hiding a real outage for long.
Remember firewalls. If the service only accepts connections from certain addresses, the monitor will report it as down even though your own users can reach it. Either allow the checker through, or expose a public health endpoint and use an HTTP monitor instead. Record the choice in your runbook so nobody removes the rule later by mistake.
Frequently asked questions
Does a port check confirm the application works?
No. It confirms something accepts connections. Use website monitoring or an API check for application logic.
Can I check UDP ports?
Not yet. See UDP monitoring for alternatives.
What timeout is used?
You set the timeout on the monitor. Keep it below the interval.
Related
Open the dashboard
Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.