vMarkusK / Advanced-PRTG-Sensors

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

Wrong XML format #46

Closed Support-DataExpertise closed 4 years ago

Support-DataExpertise commented 4 years ago

Hi,

I'm having an issue with the utilization of the script. When I run the script on the probe itself, the script return me something like that:

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

`0:

Successful-Backups 5 1 1

.....`

I don't pass any parameters because I modified the BRHost variable into my script. But when I setup PRTG to run the script, this is what it gives me :

2020-01-03_09-21

This is what is setup into PRTG :

2020-01-03_09-39

Thanks for your help and Happy new year !

vMarkusK commented 4 years ago

Hi,

this issue is typically based on special characters (like "\ > <") in your Repo names.

Might you please execute the Script in Debug Mode and share the Result?

C:\temp\PRTG-VeeamBRStats.ps1 -Debug

Support-DataExpertise commented 4 years ago

I'm running the command on the server with : .\PSx64.exe -f="PRTG-VeeamBRStats.ps1" -Debug and it returns me the same result.

vMarkusK commented 4 years ago

Please run the command directly in PS without PSx64.exe

Support-DataExpertise commented 4 years ago

I donwloaded the latest version of the script and it worked