vMarkusK / Advanced-PRTG-Sensors

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

Connection Error #53

Closed UAnton closed 4 years ago

UAnton commented 4 years ago

Have a problem with the script. Failed to connect to Veeam BR Host 'backup01.lan.local' with user 'Username'

P.S. Username - is a domain user but the script doesn't use domain like Domain_name\Usre_name

vMarkusK commented 4 years ago

How do you start the Script, via PS64.exe, or directly in PowerShell?

Have you tied to use the Veeam Console on the same server to verify the connection?

UAnton commented 4 years ago

Hi, I start the script via PS64.exe. Yes, I install Console and verify the connection.

vMarkusK commented 4 years ago

Might you please start a PowerShell Prompt with the user you have already verified successfully via Console connection and try to execute the PS1 with the parameter for the VBR Server?

PRTG-VeeamBRStats.ps1 -BRHost veeam01.lan.local -Debug

vMarkusK commented 4 years ago

@UAnton is there an update available?

cipo80 commented 4 years ago

Hi @vMarkusK I've a similar problem of @UAnton , If I execute the script by PowerShell Prompt in Veeam or PRTG both worked, but if I try by PowerShell Prompt using PSx64.exe, I received an authentication error:

immagine

vMarkusK commented 4 years ago

Passing Parameters to PSx64.exe is pretty tricks. In your case you can try these workarounds:

  1. Just run PRTG-VeeamBRStats.ps1 veeam01.lan.local, or .\PSx64.exe -f="PRTG-VeeamBRStats.ps1" -p="veeam01.lan.local"
  2. Modify the default for the BRHost Parameter to your Veeam Server and do not add any parameters
cipo80 commented 4 years ago
1. .\PSx64.exe -f="PRTG-VeeamBRStats.ps1" -p="veeam01.lan.local"

Very thank you @vMarkusK , in my case is working with .\PSx64.exe -f="PRTG-VeeamBRStats.ps1" -p="veeam01.lan.local"

Great script/result, thank you for your work :)