What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

PortState Usage

Votes:

0

Hi all,

  1. Setup PortState as Custom EXE/Script
  2. Select PortState.exe
  3. Entered the parameters:
-id=%sensorid -h=%host -p=34780 -pt=UDP


Once created, PRTG created 3 channels/status:

Channel IDLast Value
Downtime-4
Execution Time12,135
Value24,270

From the channel, how do I know if the port is down?

custom-script-exe portstate prtg

Created on Feb 1, 2021 3:41:33 AM

Last change on Feb 1, 2021 6:26:32 AM by  Felix Wiesneth [Paessler Support]



3 Replies

Votes:

0

Hi there,

where is PortState coming from? What resource does you use as it appears to be no native sensor.
My gut feeling would be if the port is closed, the script returns an error and so is the sensor. But as it is a custom one I can't tell that for certain.

Best,
Sebastian

Created on Feb 2, 2021 10:47:31 AM by  Sebastian Kniege [Paessler Support]



Votes:

0

Hi Sebastian,

PortState can be download from PRTGToolsFamily.com website (https://prtgtoolsfamily.com/downloads/download/565e76af-60d0-428b-8e7f-e79015a1e295).

Created on Feb 5, 2021 9:40:27 AM



Votes:

0

Hi,

If the port can not be monitored properly the sensor will show an error message:

The external .exe file or script has not returned a response. (code: PE087)

Please find the developers regarding this custom sensor on our knowledge base here.

If you just want to figure out whether a port is closed or open, you can also check the native Port Sensor that comes with each PRTG installation.

Best,
Sebastian

Created on Feb 10, 2021 5:09:00 AM by  Sebastian Kniege [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.