To take this integration further, we ideally need to be able to ingest the backup information into BR, similar to what is already available via the email ingestion. Receiving the ticket that just says there was a failure or warning, and still having to go and dig around in VSPC or some other Veeam management tool to gather the information adds time to the task.
This seems to be a relatively simple addition as the data is returned when the job status is queried anyway, from the JSON returned if the job status is a failure with VBR, or warning/failure in VBO365.
Some examples are below, I have truncated the output for clarity.
- VBR:
Querying /infrastructure/backupServers/jobs/backupVmJobs object
failureMessages: ] is returned
{
"data": :
{
"instanceUid": "944c9568-9423-4893-9163-59a8242cadc1",
"subtype": "VSphere",
"targetRepositoryUid": "88788f9e-d8f5-4eb4-bc4f-9b3f5403bcec",
"protectedVmCount": 1,
"_embedded": {
"backupServerJob": {
"instanceUid": "944c9568-9423-4893-9163-59a8242cadc1",
"name": "VMBackupJob1",
"backupServerUid": "062a3c26-e7d0-480c-928f-36a353938b85",
"locationUid": "895f4104-741c-4972-941b-20fec9126c8f",
"siteUid": "de0ffddd-d046-4363-8ea6-44859bc5b2e4",
"organizationUid": "899d01ed-5972-4ce4-ac6c-717ff0780309",
"mappedOrganizationUid": "899d01ed-5972-4ce4-ac6c-717ff0780309",
"status": "Success",
"type": "BackupVm",
"lastRun": "2023-10-20T12:07:31.317+11:00",
"lastEndTime": "2023-10-20T12:08:30.517+11:00",
"lastDuration": 59,
"processingRate": 0,
"avgDuration": 59,
"transferredData": 0,
"bottleneck": "None",
"isEnabled": true,
"scheduleType": "NotScheduled",
"failureMessage": null,
"targetType": "Local",
"destination": "Default Backup Repository",
"retentionLimit": 7,
"retentionLimitType": "Days",
"backupChainSize": "2810183",
"isGfsOptionEnabled": false,
"lastSessionTasks": :
{
"instanceUid": "d15ac8e3-912c-423e-9b7d-e1849139807c",
"objectUid": "e484d769-b4bb-4f24-8c4d-ad0f2b54acf2",
"objectName": "restv3empty",
"totalObjects": 5,
"processedObjects": 5,
"readDataSize": null,
"transferredDataSize": null,
"startTime": "2023-10-20T12:07:46.223+11:00",
"endTime": "2023-10-20T12:08:24.223+11:00",
"duration": 38,
"failureMessages": :],
"status": "Success"
}
]
}
}
}
]
- M365:
Querying /infrastructure/vb365Servers/organizations/jobs/backup
lastErrorLogRecords r] is returned
{
"instanceUid": "cde7c9c1-734b-43b5-8bac-1f8a73de91d5",
"name": "<snip>",
"description": "Sharepoint and Teams backup for <snip>",
"repositoryUid": "e12bf3c9-3a29-4d40-881b-b34aa61cb108",
"repositoryName": "<snip>",
"vb365OrganizationUid": "<snip>",
"vspcOrganizationUid": "94d55903-df13-496f-b0c7-fbbe9c92c15f",
"vspcOrganizationName": "<snip>",
"vb365ServerUid": "ae5dca0b-23b7-4ef7-ad34-565796209cfc",
"vb365ServerName": "<snip>",
"lastRun": "2024-08-02T01:03:52.6865243+00:00",
"nextRun": "2024-08-02T08:00:00.0000000+00:00",
"isEnabled": true,
"isCopyJobAvailable": true,
"backupType": "SelectedItems",
"lastStatus": "Warning",
"lastStatusDetails": "Team site not found: Contractors",
"lastErrorLogRecords": s
{
"message": "Team site not found: <snip>",
"logType": "Warning"
},
{
"message": "Team site not found: <snip>",
"logType": "Warning"
},
{
"message": "Team site not found: <snip>",
"logType": "Warning"
},
{
"message": "Processing team <snip> finished with warning: Team files processing finished with warnings",
"logType": "Warning"
},
{
"message": "Processing team <snip> finished with warning: Team files processing finished with warnings",
"logType": "Warning"
},
{
"message": "Processing team Contractors finished with warning: Team files processing finished with warnings",
"logType": "Warning"
},
{
"message": "Job finished at 2/08/2024 11:03:52 AM with warnings",
"logType": "Warning"
}
],