Closed DaStanka closed 3 years ago
Might you please verify this change in line 79:
trap{
if($RemoteSession){Remove-PSSession -Session $RemoteSession}
#Disconnect-VBRServer -ErrorAction SilentlyContinue
Write-Error $_.ToString()
Write-Error $_.ScriptStackTrace
Write-Output "<prtg>"
Write-Output " <error>1</error>"
Write-Output " <text>$($_.ToString())</text>"
Write-Output "</prtg>"
Exit
}
@DaStanka If you have already upgraded to v11, might you please verify the PR #76 ?
Your issue should be addressed.
I want to run the script from the PRTG Probe with -psremote so that I no longer have to install / update the Veeam console on the PRTG Probe.
This error occurs on the PRTG Probe (, of course, without the Veeam console installed):
PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML> ._PRTG-VeeamBRStats_2020_04.ps1 -brhost veeam.xyz.de -psremote
Repository Name Free (GB) Total (GB) Free (%) Status
xyz-NAS-01 3133,70 11076,09 28 OK cloud1 534,94 1024 52 OK cloud2 130,09 1024 13 Warning cloud3 194,25 1024 19 Warning cloud4 489,31 1024 48 OK cloud5 568,04 1024 55 OK cloud6 602,48 1024 59 OK cloud7 400,12 1024 39 OK
Successful Backups : 1 Warning Backups : 0 Failes Backups : 0 Failed Backups : 0 Running Backups : 0 Total Backup Transfer : 13 Total Backup Read : 26 Warning BackupCopys : 0 Failes BackupCopys : 0 Failed BackupCopys : 0 Running BackupCopys : 0 Idle BackupCopys : 0 Successful Replications : 0 Warning Replications : 0 Failes Replications : 0 Failed Replications : 0 Running Replications : 0 Seccessful Endpoints : 0 Warning Endpoints : 0 Failes Endpoints : 0 Running Endpoints : 0
PS C:_xyz>