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

Retreiving SNDS data, packaging for PRTG, prtg fails, complaining it doesn't contain Result



Hello there

We've created a small powershell script for retreiving a CSV file from M$ SNDS, and entering the data into PRTG.

$url = "https://xxx"
$headers = 'channel','DateFrom','DateTo','rcpt','data','receipients','status','compliantrate','trapperiod','samplehelo','samplemailfrom'

$innerbox = @{
    "result" = Invoke-WebRequest $url | Select-Object -ExpandProperty Content | ConvertFrom-Csv -Header $headers
@{"prtg" = $innerbox}|ConvertTo-Json -Compress -Depth 100

The result looks correct to my eyes:
{"prtg":{"result":[{"channel":"","DateFrom":"1/13/2020 1:00 AM","DateTo":"1/13/2020 11:00 PM","rcpt":"2883","data":"2883","rece
ipients":"2860","status":"GREEN","compliantrate":"\u003c 0.1%","trapperiod":"","samplehelo":"","samplemailfrom":"0"}]}}

But in PRTG I get the message:

XML: The returned XML does not match the expected schema. (code: PE233) -- JSON: The returned JSON does not match the expected structure (Result is missing). (code: PE231)

exexml json prtg

Created on Jan 14, 2020 2:14:02 PM

Last change on Jan 15, 2020 5:32:23 AM by  Sven Roggenhofer [Paessler Technical Support]

1 Reply



Hi there,

Please enable the Write sensor result to disk (Filename: "Result of Sensor [ID].txt") and forward the resulting text files to [email protected]. They are located on the probe host in the directory C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors).

Kind regards,
Felix Saure, Tech Support Team

Created on Jan 15, 2020 11:05:31 AM by  Felix Saure [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.