Перейти к основному содержимому

🔌 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.


🎯 Что делает

  • 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

⚙️ Конфигурация

НастройкаОписаниеПример
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

📖 Примеры использования

Example 1: Check if a port is open

Just verify that port 8080 is accepting connections:

НастройкаЗначение
NameApp Server Port 8080
Addressapp.example.com
Port8080

Example 2: Redis health check

Send a PING command and expect PONG:

НастройкаЗначение
NameRedis
Address10.0.0.5
Port6379
Send DataPING\r\n
Expect Data+PONG

Example 3: Custom application protocol

НастройкаЗначение
NameGame Server
Addressgame.example.com
Port27015

💡 Советы

  • 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.