Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colon in the repo name #4

Closed
foorschtbar opened this issue Nov 10, 2016 · 6 comments
Closed

Colon in the repo name #4

foorschtbar opened this issue Nov 10, 2016 · 6 comments
Labels

Comments

@foorschtbar
Copy link

foorschtbar commented Nov 10, 2016

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

@vMarkusK vMarkusK added the bug label Nov 22, 2016
@vMarkusK
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

@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
Copy link
Author

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:)</channel> <value>39</value> <unit>Percent</unit> <showChart>1</showChart> <showTable>1</showTable> <LimitMinWarning>20</LimitMinWarning> <LimitMinError>10</LimitMinError> <LimitMode>1</LimitMode> </result> </prtg>

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... <prtg> <result> <channel>Successful-Backups</channel> <value>16</value> <showChart>1</showChart> <showTable>1</showTable> [...] <showChart>1</showChart> <showTable>1</showTable> <LimitMinWarning>20</LimitMinWarning> <LimitMinError>10</LimitMinError> <LimitMode>1</LimitMode> </result> </prtg>

@vMarkusK
Copy link
Owner

vMarkusK commented Dec 2, 2016

I am confused... why do you add

0

to the command?

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

@foorschtbar
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants