vMarkusK / Advanced-PRTG-Sensors

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

remote sessione parameters help #61

Closed martinorob closed 4 years ago

martinorob commented 4 years ago

Hi, i have a probe end a br vm on 2 differente vms with two different username password and hostname. May someone help me to get PRTG Sensor working in a configuration like this?

If I run this command on the probe: PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML> .\PRTG-VeeamBRStats.ps1 192.168.1.121 i have this result:

C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VeeamBRStats.ps1 : Failed to connect to Veeam
BR Host '192.168.1.121' with user 'Administrator'
At line:1 char:1
+ .\PRTG-VeeamBRStats.ps1 192.168.1.121
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,PRTG-VeeamBRStats.ps1

C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VeeamBRStats.ps1 : at <ScriptBlock>, C:\Program
Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VeeamBRStats.ps1: line 203
at <ScriptBlock>, <No file>: line 1
At line:1 char:1
+ .\PRTG-VeeamBRStats.ps1 192.168.1.121
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,PRTG-VeeamBRStats.ps1

<prtg>
 <error>1</error>
 <text>Failed to connect to Veeam BR Host '192.168.1.121' with user 'Administrator'</text>

Thanks

vMarkusK commented 4 years ago

Hi @martinorob ,

You can try these workarounds:

martinorob commented 4 years ago

Moved Probe from Vcenter to Veeam vms. Thanks