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

erreur lors de l'exécution du script #13

Open
Gwen44-github opened this issue Mar 6, 2023 · 2 comments
Open

erreur lors de l'exécution du script #13

Gwen44-github opened this issue Mar 6, 2023 · 2 comments

Comments

@Gwen44-github
Copy link

Bonjour,
Merci pour le travail :)
Je rencontres des erreurs quand je lance le script powershell :
Tentative de division par zéro.
Au caractère D:\Scripts\veeam01.ps1:59 : 25

  • ... $repoObj = New-Object -TypeName PSObject -Property @{
  •                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], RuntimeException
    • FullyQualifiedErrorId : RuntimeException

Avez-vous une idée.

J'ai quelques metriques qui remontent mais pas tous car j'ai cette erreur.

Merci

@stratanic
Copy link

You can can make this line 59
(correction ligne 59)
if ($free -gt 0) {
$repoObj = New-Object -TypeName PSObject -Property @{
Target = $name
RepoHost = $repohost
Storepath = $path
StorageFree = [Math]::Round([Decimal]$free/1GB,2)
StorageTotal = [Math]::Round([Decimal]$total/1GB,2)
FreePercentage = [Math]::Round(($free/$total)*100)
}

@Gwen44-github
Copy link
Author

I confirm I modified ligne 59 and now I have no error when I launch the script.

But when I import dashboard I have no metric event if i change serveur name into influx request.
Into the dashboard you use Successful-Backups is not present into database
I have only this name :
time
failedbackupcopys
failedbackups
failedreplications
failesbackupcopys
failesbackups
failesreplications
host
idlebackupcopys
protectedendpoints
runningbackupcopys
runningbackups
runningreplications
successfulbackupcopys
successfulbackups
successfulreplications
totalbackupread
warningbackupcopys
warningbackups
warningreplications

And idea?
Thanks

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

No branches or pull requests

2 participants