jorgedlcruz / veeam-enterprise_manager-grafana

How to monitor a Veeam Enterprise Manager Environment using Powershell, Telegraf, InfluxDB and Grafana
MIT License
23 stars 11 forks source link

Back up job names - Help required #6

Open bogski87 opened 3 years ago

bogski87 commented 3 years ago

Hi,

Firstly, nice script. We've been using it for some time now but my PowerShell foo has reached its limit.

I'd like to obtain the names of the individual back up jobs running if possible? I found this section in the script which I thought might do the trick but it doesn't seem to have made a difference.

$allJobsBk = @(Get-VBRJob | ? {$_.JobType -eq "Backup"})        # Gather Backup jobs
 $allJobsBkC = @(Get-VBRJob | ? {$_.JobType -eq "BackupSync"})   # Gather BackupCopy jobs
 $repList = @(Get-VBRJob | ?{$_.IsReplica})                      # Get Replica jobs

I'm not sure if i missed something else in the script or not, if I'm honest the script is fairly complex (compared to my own) - is what I want possible?

Also, I've noticed when the body is created ready for influxDB there doesn't seem to be any tags created. Is this correct?

Any help is much appreciated :)

Thanks,

Phil