Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.
https://icinga.com/docs/vsphere/latest
GNU General Public License v2.0
100 stars 34 forks source link

Veeam Backup Hook Error -> Veeam 11 #279

Open wolf-in-sheeps-clothing opened 2 years ago

wolf-in-sheeps-clothing commented 2 years ago

Expected Behavior

the Backup Hook works as expected ;-)

Current Behavior

On Veeam 11 the VM attributes text has changed. So the Veeam Backup Hook doesn't work any more.

The old Version was:

Veeam Backup: Job name: [test], Time: [17.11.2021 19:00:00], Backup host: [hosttest], Backup folder: [testfolder]

Screenshot 2021-11-17 220839

Now on Veeam 11 the Version looks like:

Last backup: [30.10.2021 21:56:04]; Veeam server: [TESTSERVER]; Job: [Testjob]; Repository: [Testserver.test..local]

Screenshot 2021-11-17 220652

Possible Solution

adjust VeeamBackupRunDetails.php

Steps to Reproduce (for bugs)

manually adjust the VM Notes (I use Notes!) and restart the daemon (or wait until sync)

Your Environment

Veeam 11

gerdesj commented 1 year ago

Same issue with Veeam v12. The entry in Notes is the same as noted above for v11. I have tried to fix this by editing some strings here:

vspheredb/library/Vspheredb/Addon/VeeamBackup.php
vspheredb/library/Vspheredb/Web/Widget/Addon/VeeamBackupRunDetails.php

but rapidly ended up out of my depth and a page full of errors!

For reference, a recent anonymized example of the Annotation field in vspheredb for a VM: Last backup: [18/07/2023 14:11:37]; Veeam server: [servershortname]; Job: [Backup job name]; Repository: [serverfullname]