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

Custom PowerShell Sensor not showing correct value



I have a PowerShell script that returns a value of 152:OK and an exit code of 0 but in the sensor it shows a value of 0 for the channel. If I change the exit code I can get the state to change to warning with an exit code of 1 so I know the script is executing properly. I am using the script from here: https://www.paessler.com/knowledgebase/en/topic/29223-how-can-i-set-up-a-monitor-for-citrix-license-use-on-license-server

citrix powershell prtg

Created on Dec 11, 2013 8:32:11 PM

2 Replies

Accepted Answer



could you please activate the debug output of the script? Therefore, plesae go to tab Settings of the sensor and set option Result Handling to Write Result to Disk. This will create a file called Result of Sensor XXXX.txt in your PRTG Data Directory where the XXXX reflects the sensor id.
Please send the output along with the script itself to [email protected] and refer to this article.
Best regards

Created on Dec 12, 2013 8:37:41 AM by  Konstantin Wolff [Paessler Support]



The log showed an Access Denied error. I changed the context the script is run under and all is well. Thanks for the point in the right direction.

Created on Dec 12, 2013 3:21:13 PM

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.