vMarkusK / Advanced-PRTG-Sensors

Collection of my Advanced PRTG Sensors
https://mycloudrevolution.com/
Apache License 2.0
67 stars 29 forks source link

Problem with VB&R v10 #71

Closed dancesa closed 3 years ago

dancesa commented 3 years ago

Hi Markus,

after we update VB&R v9.5 to v10, the PRTG Sensor return this error: "XML: Structural error in xml file, 3 open items. -- JSON: The returned JSON does not match the expected structure (Invalid JSON.). (code: PE231)" 2021-01-12 14_35_13-Window

do you have any solutions ?

Thanks.

Best regards.

Daniele.

vMarkusK commented 3 years ago

Hi,

I have a few questions:

Best wishes Markus

JamesW-AU commented 3 years ago

I've got the exact same problem. Using the latest code from the repo, Veeam B&R server and console installed on PRTG server are the same version, no special characters in any names of anything in Veeam, and if I run the script manually it seems to be fine:

PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML> .\PSx64.exe -f="PLC PRTG-VeeamBRStats.ps1" 0:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PLC PRTG-VeeamBRStats.ps1 PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>

Edit: Did a bit more digging, and found if I manually run Connect-VBRServer -Server VeeamServer I got a "Cannot connect to backup server because some of its components are out of date". I ran the VBR Console GUI and logged in (which I hadn't done after installing v10), and it downloaded a bunch of components and updated its DLL's. After that, the script ran fine.

@dancesa Could be worth giving that a try.

dancesa commented 3 years ago

Hi to all,

after update PRTG, the problem is resolved.

Thanks to all.

Best regards.

Daniele.