[{"data":1,"prerenderedAt":136},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fmonitors-port":3},{"id":4,"title":5,"body":6,"description":128,"extension":129,"meta":130,"navigation":131,"path":132,"seo":133,"stem":134,"__hash__":135},"docs\u002Fdocs\u002F6.monitors-port.md","Port monitors",{"type":7,"value":8,"toc":122},"minimark",[9,13,17,22,59,62,66,69,98,102,105,115],[10,11,5],"h1",{"id":12},"port-monitors",[14,15,16],"p",{},"Port monitors open a TCP connection to a host and port, confirming the port is open and accepting connections.",[18,19,21],"h2",{"id":20},"how-it-works","How it works",[23,24,25,33,41],"ol",{},[26,27,28,29],"li",{},"Vantaj attempts to open a TCP connection to ",[30,31,32],"code",{},"host:port",[26,34,35,36,40],{},"Waits up to ",[37,38,39],"strong",{},"10 seconds"," for the connection to be accepted",[26,42,43,44],{},"Records the result:\n",[45,46,47,53],"ul",{},[26,48,49,52],{},[37,50,51],{},"Up"," — connection established",[26,54,55,58],{},[37,56,57],{},"Down"," — connection refused, timeout, or DNS failure",[14,60,61],{},"The monitor does not send or read any data — it only verifies the port is open.",[18,63,65],{"id":64},"when-to-use-port-monitors","When to use port monitors",[14,67,68],{},"Use port monitors to verify that a specific service is listening, without caring about the application-level protocol. Common uses:",[45,70,71,77,83,89,95],{},[26,72,73,76],{},[37,74,75],{},"Databases"," — PostgreSQL (5432), MySQL (3306), Redis (6379)",[26,78,79,82],{},[37,80,81],{},"Mail servers"," — SMTP (25, 587), IMAP (993)",[26,84,85,88],{},[37,86,87],{},"Game servers"," — any custom TCP port",[26,90,91,94],{},[37,92,93],{},"SSH"," — port 22 reachability",[26,96,97],{},"Any service that doesn't speak HTTP",[18,99,101],{"id":100},"url-format","URL format",[14,103,104],{},"Enter the host and port separated by a colon:",[106,107,112],"pre",{"className":108,"code":110,"language":111},[109],"language-text","db.example.com:5432\nredis.internal:6379\n10.0.0.5:22\n","text",[30,113,110],{"__ignoreMap":114},"",[14,116,117,118,121],{},"Do not include a scheme (",[30,119,120],{},"tcp:\u002F\u002F"," is not needed).",{"title":114,"searchDepth":123,"depth":123,"links":124},2,[125,126,127],{"id":20,"depth":123,"text":21},{"id":64,"depth":123,"text":65},{"id":100,"depth":123,"text":101},"How TCP port monitors work and when to use them","md",{},true,"\u002Fdocs\u002Fmonitors-port",{"title":5,"description":128},"docs\u002F6.monitors-port","un0ov4hryCAJ08mLAJ-IicHnJ62pIVAETbnUsRFDFkQ",1780583796958]