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
9057
Files:
FileDescription
check_testport.ps1check_testport.ps1
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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