veeam-backup-for-microsoft365-grafana
veeam-backup-for-microsoft365-grafana copied to clipboard
BUG: Fails to add RBAC data to Influx DB if Organization has spaces
If your Veeam organization has spaces, then it fails to create/update the "veeam_office365_rbac_scope" and "veeam_office365_rbac_operators" entries in Influx DB
Error Message:
Error: failed to write data: 400 Bad Request: unable to parse 'veeam_office365_rbac_operators,organization=**MY ORG NAME**,rbacRoleName=Veeam\ 365\ -\ Admins,type=User,rbacROName=Joe\ Bloggs\ (Admin),[email protected] rbacRoleAdminId=0': invalid field format
This is due to a missing AWK statement on line 319 reads:
rbacOrganization=$(echo "$veeamVBOrbacUrlresult" | jq --raw-output '.name')
But should read:
rbacOrganization=$(echo "$veeamVBOrbacUrlresult" | jq --raw-output '.name' | awk '{gsub(/ /,"\\ ");print}')
Once the awk statement has been added, the issue is resold