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>"

Article Comments

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 support@paessler.com and by using "PAE961272" in the subject line.

Best regards.


Nov, 2017 - Permalink