HOW-TO

Monitoring Veeam Backup and Replication 7 with Icinga / Nagios

We’ve recently deployed a Veeam Backup and Replication 7 platform, and needed to monitor the ongoing success of the backup / replication jobs. I identified a plugin which does most of what’s required, but seems to have 2 current shortcomings: 1. In-progress jobs trigger false warnings 2. Date calculation doesn’t always work, and produces false warnings

I made the following modifications to check_veeam_backups.ps1 to address these: Under

$status = $job.GetLastResult()

Add:

if($($job.findlastsession()).State -eq "Working")<br /> { Write-Host "OK - Job: $name is currently in progress." exit 0<br /> }

And then change line #59 from:

if ($now -gt $last)

To:

if(Get-Date $now) -gt (Get-Date $last))


If you found this useful, please share it and follow me on Twitter - I'd love to connect ;)


Discuss