diff --git a/zbx-templates/zbx-veeam/zabbix_vbr_job.ps1 b/zbx-templates/zbx-veeam/zabbix_vbr_job.ps1 index 3eb9933..f77dac4 100755 --- a/zbx-templates/zbx-veeam/zabbix_vbr_job.ps1 +++ b/zbx-templates/zbx-veeam/zabbix_vbr_job.ps1 @@ -93,6 +93,14 @@ switch ($ITEM) { } else { return "0" } + } + "24hJobCount" { + $query = Get-VBRBackupSession | where { $_.EndTime -gt ((Get-Date).AddDays(-1)) } | Measure + if ($query) { + [string]$query.Count + } else { + return "0" + } } default { Write-Host "-- ERROR -- : Need an option to work !"