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


Article Comments

Hi,
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 support@paessler.com and refer to this article.
Best regards


Dec, 2013 - Permalink

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.


Dec, 2013 - Permalink