freaky-media / PRTGScripts

8 stars 5 forks source link

XML: The returned XML does not match the expected schema. (code: PE233) #1

Closed SANCLA closed 4 years ago

SANCLA commented 4 years ago

Hi Freaky!

I just tried to implement this script but i get the following error in PRTG:

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

I use the following parameters in PRTG (EXE/Script Advanced sensor): -NCusername xxx -NCpassword xxx -NCURL nextcloud.xxx.com

However, if I run the script manually with the same parameters, it seems to work just perfectly:

`

Nextcloud Status 0 NextCloudStatusLookup.State Nextcloud Status Code 0 NextCloudStatusCodeLookup.State

Nextcloud Message 0 NextCloudMessageLookup.State Active Users Last 5min 2 Active Users Last 1Hour 2 Active Users Last 24Hours 2 Memory Total 1993.74 1 Custom MB Memory in Use 1209.38 1 Custom MB Swap Total 980 1 Custom MB Swap Free 728.62 1 Custom MB SQL DB Size 21.34 1 Custom MB Share Links without Password 1 0 0 1 Custom # Shares Apps with Updates 1 0 0 1 Custom App(s)

`

Perhaps relevant information: The PRTG instance is beeing run in a home lab environment with the free version of PRTG. PRTG version: PRTG Network Monitor 19.4.54.1455 [Preview] Underlying OS: Windows 10 Pro 1903 Build 18362.476

SANCLA commented 4 years ago

Erm, I think I found it already, used the wrong sensor. For the record:

Use the following sensor: EXE/Script use the following location: C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXE