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

Issue with response not wellformed on Powershell Script

Votes:

0

Here is the write output from the Powershell script I am using. How does this need to be formed for PRTG to pick it up? I've tried looking at the other Questions and KB Articles, but I must be misunderstanding something.

Write-Host 
"<prtg>"
    "<result>"
        "<channel>Count</channel>"
        "<value>$TOOLCount</value>"
        "<CustomUnit>Points</CustomUnit>"
    "</result>"
    "<result>"
        "<channel>Active</channel>"
        "<value>$ACTIVECount</value>"
        "<CustomUnit>Points</CustomUnit>"
    "</result>"
"</prtg>"

custom-script-exe powershell prtg

Created on Nov 28, 2017 4:26:32 PM

Last change on Nov 29, 2017 8:52:19 AM by  Dariusz Gorka [Paessler Support]



1 Reply

Votes:

0

Hi there,

Please make sure that you use the Advanced sensor, not the normal one as only the Advanced sensor is able to read XML/JSON. Should that not work either, please activate the "Write EXE result to disk" option in the sensor's settings and forward us the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under "C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors)". You can forward us the logs via mail to [email protected] and by using "PAE961272" in the subject line.

Best regards.

Created on Nov 29, 2017 8:55:24 AM by  Dariusz Gorka [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.