I have a straightforward need to monitor a few endpoints by whether or not the port is opened/listening. It needs to be done this way due to the nature of the tunnel and security. Simple PowerShell script does the work just fine: (IP addresses sanitized)
Test-NetConnection xxx.xxx.xxx.xxx -p 443
The output is as such:
ComputerName : xxx.xxx.xxx.xxx RemoteAddress : xxx.xxx.xxx.xxx RemotePort : 443 InterfaceAlias : NIC1 SourceAddress : xxx.xxx.xxx.xxx TcpTestSucceeded : True
All we want to alert on is is the last lie is "false"
What we get is an alert in any status and the error Response not well-formed: "( ComputerName : xxx.xxx.xxx.xxx RemoteAddress : xxx.xxx.xxx.xxx RemotePort : 443 InterfaceAlias : NIC1 SourceAddress : xxx.xxx.xxx.xxx TcpTestSucceeded : True )" (code: PE132)
Add comment