Backups
VMware Backups with Veeam
20/03/12 12:24
I’ve recently deployed Veeam Backup to backup our 500 VMs, which all sit on a VMware vSphere.
We needed to monitor the backups to check everything is going okay. However, due to Veeam’s excessive keenness in reporting warnings where they aren’t needed, it’s useless trying to wade through all the pretty Veeam backup reports every morning.
What we needed was a way of telling the age of the most recent successful backup of each VM, which we could then pass on to some other tool for parsing (Nagios in our case, though the data’s the important bit!).
So I created a script which looks through every VM Veeam has ever backed up (i.e. every VM for which it has ever attempted a backup) and reports the age of the most recent backup of that VM. I wrote it in PowerShell, and you are welcome to download it and use it yourself. It generates a CSV table which you can read into anything. In my case it squirts it across the network to a waiting Nagios server, but you can do anything you like with it.
To send the CSV text it generates to the remote server it uses the Send-TcpRequest.ps1 script that I heavily modified from the Windows PowerShell Cookbook published by O’Reilly. I hope they don’t mind me messing with their code a lot!
We needed to monitor the backups to check everything is going okay. However, due to Veeam’s excessive keenness in reporting warnings where they aren’t needed, it’s useless trying to wade through all the pretty Veeam backup reports every morning.
What we needed was a way of telling the age of the most recent successful backup of each VM, which we could then pass on to some other tool for parsing (Nagios in our case, though the data’s the important bit!).
So I created a script which looks through every VM Veeam has ever backed up (i.e. every VM for which it has ever attempted a backup) and reports the age of the most recent backup of that VM. I wrote it in PowerShell, and you are welcome to download it and use it yourself. It generates a CSV table which you can read into anything. In my case it squirts it across the network to a waiting Nagios server, but you can do anything you like with it.
To send the CSV text it generates to the remote server it uses the Send-TcpRequest.ps1 script that I heavily modified from the Windows PowerShell Cookbook published by O’Reilly. I hope they don’t mind me messing with their code a lot!
Comments