Home Directory Plugins Network Protocols * TCP and UDP (Generic) Simple TCP Port ant Ping Check in PowerShell

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Simple TCP Port ant Ping Check in PowerShell

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2018-03-01
Owner
Hits
8463
Files:
FileDescription
check_testport.ps1check_testport.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This Script Will Test if TCP Port Connection is open and if it pings

--EXAMPLE
.check_testport.ps1 -Server SERVER-ADDRESS
OK : PingReplyDetails: 32ms

--EXAMPLE 1
.check_testport.ps1 -Server SERVER-ADDRESS
FAIL: Ping Timeout

-- EXAMPLE 2
.check_testport.ps1 -Server SERVER-ADDRESS -Port 80
FAIL: TCP Port 80 CLOSED, PingSucceeded: True, Roundtrip Time: 8ms

--EXAMPLE 3
.check_testport.ps1 -Server SERVER-ADDRESS -Port 3200
FAIL: TCP Port 3200 CLOSED, PingSucceeded: False, Roundtrip Time: 0ms