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

Add ability to monitor Cloud Repositories #40

Closed
homern opened this issue Jul 23, 2019 · 11 comments
Closed

Add ability to monitor Cloud Repositories #40

homern opened this issue Jul 23, 2019 · 11 comments

Comments

@homern
Copy link

homern commented Jul 23, 2019

with Get-VBRBackupRepository on a Cloud Repository the Sizes return with -1 so it Calculates to 100% Free Space

@vMarkusK vMarkusK added this to Possible To Do in PRTG-VeeamBRStats via automation Jul 23, 2019
@vMarkusK
Copy link
Owner

Thanks for reporting this issue.

Might you please share the return of this command to verify a possible workaround:

Get-VBRBackupRepository | Select Type

@homern
Copy link
Author

homern commented Jul 23, 2019

thanks for the fast reaction, the output is:

PS C:_XX> Get-VBRBackupRepository | Select Type
Type
CifsShare
Cloud
PS C:_XX>

@homern
Copy link
Author

homern commented Jul 23, 2019

i also get an Exception at line 169 if I don't remove the .tolower() for this Repo, the CIFS is working fine

$HostName = $(Get-VBRServer | Where-Object {$_.Id -eq $r.HostId}).Name.ToLower()

C:_XX\Untitled1.ps1 : You cannot call a method on a null-valued expression.
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Untitled1.ps1

C:_XX\Untitled1.ps1 : at Get-vPCRepoInfo, C:_XX\Untitled1.ps1: line 169
at , C:_XX\Untitled1.ps1: line 510
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Untitled1.ps1

@vMarkusK
Copy link
Owner

Might you please verify the Version of the script in PR #41

@vMarkusK vMarkusK moved this from Possible To Do to In progress in PRTG-VeeamBRStats Jul 23, 2019
@homern
Copy link
Author

homern commented Jul 23, 2019

this works now without the Error Message for the Cloud Repo and also Removes the Cloud Repo (as said in the Commit)

@vMarkusK
Copy link
Owner

Great.

Are you fine with that solution?

@homern
Copy link
Author

homern commented Jul 23, 2019

for the moment its ok, but for the long run it would be nice to monitor the Storage left in Cloud Backup Repos

@vMarkusK
Copy link
Owner

I fully agree with you.

I will try to build a test environment for that that feature requests. But that will take some time.

@homern
Copy link
Author

homern commented Jul 23, 2019

ok, I will close the Issue now and wait for the feature

thanks

@homern homern closed this as completed Jul 23, 2019
@vMarkusK vMarkusK reopened this Jul 29, 2019
@vMarkusK vMarkusK added enhancement and removed bug labels Jul 29, 2019
@vMarkusK vMarkusK changed the title Cloud Repository Returning -1 for Size Add ability to monitor Cloud Repositories Jul 29, 2019
@vMarkusK vMarkusK self-assigned this Jul 29, 2019
@vMarkusK
Copy link
Owner

vMarkusK commented Dec 3, 2019

#42 is also about this request

@vMarkusK
Copy link
Owner

@vMarkusK vMarkusK moved this from In progress to Done in PRTG-VeeamBRStats Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants