Zum Hauptinhalt springen

๐Ÿ”Œ TCP Port Monitor

The TCP monitor connects to a specific port on a host to verify that the service behind it is listening and responding.


๐ŸŽฏ Was Es Machtโ€‹

  • Opens a TCP connection to a host:port
  • Optionally sends data after connecting
  • Optionally checks for expected data in the response
  • Reads the service banner (if any)
  • Measures connection time

โš™๏ธ Konfigurationโ€‹

EinstellungBeschreibungBeispiel
NameA friendly nameRedis Production
Host / IPTarget hostname or IP10.0.0.5
PortTCP port number6379
Send DataData to send after connectingPING\r\n
Expect DataExpected string in response+PONG
TimeoutConnection timeout10 seconds

๐Ÿ“– Anwendungsbeispieleโ€‹

Example 1: Check if a port is openโ€‹

Just verify that port 8080 is accepting connections:

EinstellungWert
NameApp Server Port 8080
Addressapp.example.com
Port8080

Example 2: Redis health checkโ€‹

Send a PING command and expect PONG:

EinstellungWert
NameRedis
Address10.0.0.5
Port6379
Send DataPING\r\n
Expect Data+PONG

Example 3: Custom application protocolโ€‹

EinstellungWert
NameGame Server
Addressgame.example.com
Port27015

๐Ÿ’ก Tippsโ€‹

  • TCP monitors are great for services that don't speak HTTP โ€” databases, caches, message queues, custom applications.
  • If you just need to check if a port is open, leave "Send Data" and "Expect Data" empty.
  • For databases, consider using the dedicated MySQL/PostgreSQL/Redis monitors instead, which perform actual protocol checks.