vMarkusK / Advanced-PRTG-Sensors

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

Colon in the repo name #4

Closed foorschtbar closed 7 years ago

foorschtbar commented 7 years ago

The xml is malformed when a colon is in the repo name.

vMarkusK commented 7 years ago

Can you tell which script you have used?

If PSx64.exe is in Use have you tried the "-raw" switch? An other user had a similas issue with this output:

REPO - LD301 (F:)
foorschtbar commented 7 years ago

We've had also a repo with a Driveletter in it. With the -raw switch we get this error: XML: XML Parser mismatch: Wanted </>, got </channel>

vMarkusK commented 7 years ago

@foorschtbar do you get this error during manual execution or in PRTG?

More Logs would help me. Can you please execute the Script in with the following command:

CMD: PSx64.EXE -raw -f=

And attach the output?

foorschtbar commented 7 years ago

This error was from PRTG, but this is from the cmd:

With -raw: C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>PSx64.exe -raw -f="PRTG-VeeamBRstats.ps1" -p="xxx.local" 0

Without -raw: `C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>PSx64.exe -f="PRTG-VeeamBRstats.ps1" -p="xxx.local" 0:)

39 Percent 1 1 20 10 1

`

Without colon: `C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>PSx64.exe -f=" PRTG-VeeamBRstats.ps1" -p="medelo-veeam.medelo.local" 0:Starting to Process Connection to medelo-veeam.medelo.local ... Connecting BRHost...

Successful-Backups 16 1 1 [...] 1 1 20 10 1 `
vMarkusK commented 7 years ago

I am confused... why do you add

0

to the command?

The XML schema looks good. maybe is a screenshot clearer.

foorschtbar commented 7 years ago

This is the return code from PSx64.

It seams, that the PSx64 is the problem. I write my own PSx64 and now i have no problems with the colons.

https://kb.paessler.com/en/topic/32033-is-it-possible-to-use-the-64bit-version-of-powershell-with-prtg