New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


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

Votes:

0

Your Vote:

Up

Down

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":"1.2.3.48","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 by  Kenneth Fribert (50) 1 1

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



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.