Hello,
I would like to know if anyone has managed to supervise backup jobs with Veeam for AHV.
I supervise my veeam backup jobs through the NRPE plugin but only the hyper-v and vmware jobs appear.
Thank you in advance for your knowledge
Hello,
I would like to know if anyone has managed to supervise backup jobs with Veeam for AHV.
I supervise my veeam backup jobs through the NRPE plugin but only the hyper-v and vmware jobs appear.
Thank you in advance for your knowledge
hello
Centreon uses powershell commands provided by veeam, it’s the cmdlet “get-vbrjob”
that command unfortunately does not return the backup job from “plugins” from veeam, only normal backup or backup copy (vmware and hyper-v)
looking at the veeam forum I found this powershell/VAN-BackupReports/Get-VeeamAHVBackupSessionReport.ps1 at master · VeeamHub/powershell · GitHub
which will call the veeam powerhsll api at a lower level than the veeam cmdlet and will list/report the jobs
if someone want to develop/adapt that, good luck (as of now, I have no idea on how to do your own powershell plugin for centreon using their system, there is a need to compile something and the workflow is not clear for me)
for a dev from centreon
Get-VBRJob | ForEach-Object {
replace with
aVeeam.Backup.Core.CBackupJob]::GetAll() | ForEach-Object {
I just tested the code manually from the centreon git and just changing this line returns me all the jobs as the data structure is identical from “get-vbrjob” and that “::GetAll()” function. (at least for the properties used in the that function)
same thing here : https://github.com/centreon/centreon-plugins/blob/9b5b90c736379b37c44c5f5fa0cc272ef3137980/src/centreon/common/powershell/veeam/listjobs.pm#L49
$jobs = Get-VBRJob
becomes
$jobs = nVeeam.Backup.Core.CBackupJob]::GetAll()
and confirmation that the type of object is identical
blame veeam and their devs to have put a strange filter in the “get-vbrjob” cmdlet, there may be other things to modify in the plugin but as I said, I can’t test/compile the exe that contains that powershell command.
as a philosophical note : I don’t use that plugin as I consider what is my need, centreon is a realtime monitoring platform, and monitoring the status of a daily backup job is not the role of a platform like centreon in my opinion
it depends on your use case, if you are not using centreon to get realtime alert but have a team of technician that make a daily check with their eyes if the status is red, then it’s ok to use that
but then you would need to be aware of the schedule of the job, the frequency, etc… and in my case I have 50 veeam servers, more that 500 jobs with various schedule and clients, we use another tool to centralize the backup status and reports
as i said it depends on your need, and if you are ok to have something that is red in centreon because something failed 20hrs ago (or 3 weeks on a monthly job you cannot re-run manually), then it’s ok for that need.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.