Skip to main content

Grafana Dashboard for Veeam Backup & Replication


Show first post

111 comments

leduardoserrano
Forum|alt.badge.img+6

Thanks for sharing with us, @jorge.delacruz !👍🏻


  • New Here
  • 5 comments
  • March 14, 2024
jonah wrote:

@jorge.delacruz yes I can connect with the same user/password in swagger

Hi @jorge.delacruz  I am getting the “Unauthorized: Authentication failed” Error when executing the bash script. I am using the local Administrator account to access the API. It works well with swagger. Which credentials should be used from the bash script to access the API?


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • March 14, 2024

Well, do you have any special character in the password that can escape the double quotes?, if so, you can always can try creating a local admin in VBR server, give it access in the console with an easier pass and give it a go.


  • New Here
  • 5 comments
  • March 14, 2024
jorge.delacruz wrote:

Well, do you have any special character in the password that can escape the double quotes?, if so, you can always can try creating a local admin in VBR server, give it access in the console with an easier pass and give it a go.

Hi @jorge.delacruz after using a simple password, it can push some data to influx dB. there is a new error as below

 


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • March 14, 2024
jonah wrote:
jorge.delacruz wrote:

Well, do you have any special character in the password that can escape the double quotes?, if so, you can always can try creating a local admin in VBR server, give it access in the console with an easier pass and give it a go.

Hi @jorge.delacruz after using a simple password, it can push some data to influx dB. there is a new error as below

 

Hello, you can omit that, it is just a job that is in progress.

Cheers


  • New Here
  • 5 comments
  • March 14, 2024
jonah wrote:
jorge.delacruz wrote:

Well, do you have any special character in the password that can escape the double quotes?, if so, you can always can try creating a local admin in VBR server, give it access in the console with an easier pass and give it a go.

Hi @jorge.delacruz after using a simple password, it can push some data to influx dB. there is a new error as below

 

Hi @jorge.delacruz after a retry it is now working okay.

Thank so much.

Is it possible to pull and display data for: surebackup, cloud failover plans and cloud connect repository?


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • March 14, 2024

Hello, full reference can be found here:

If you have any FR, please go to the Forums and contact Oleg :)

 

I do not think this is possible today


  • New Here
  • 1 comment
  • March 25, 2024

Getting an Unsupported RESTAPI version when attempting to run against a Veeam B&R 12 install.  Any ideas?

 

After changing the x-api-version: 1.1-rev1 to rev0 it worked fine.  Must be missing an update or something.


  • New Here
  • 3 comments
  • June 5, 2024

Just wanted to add my findings, if you are running influx with an selfsign certificate, you will have to do a find and replace on the sh script:

Find: influx write

Replace: influx write --skip-verify


  • New Here
  • 2 comments
  • June 10, 2024

Hello,

What permissions does the Veeam user need? I don't want to enter the password of an admin user in plain text in the file.

Cheers, Heyko


  • New Here
  • 3 comments
  • June 10, 2024

@Heyko I created a Veeam service account with read only access (Veeam Backup viewer permission) and the script is able to pull data just fine


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • June 13, 2024
maaron wrote:

Just wanted to add my findings, if you are running influx with an selfsign certificate, you will have to do a find and replace on the sh script:

Find: influx write

Replace: influx write --skip-verify

Nice catch, I always use proper SSL. Will modify that right away, thanks a lot!


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • June 13, 2024
Heyko wrote:

Hello,

What permissions does the Veeam user need? I don't want to enter the password of an admin user in plain text in the file.

Cheers, Heyko

Hello, well it requires a user that can login in the RESTAPI. Try a Veeam Backup Viewer, and of course, reduce all windows permissions to that user, so no RDP, etc.

 

Ah, I can see that @maaron has just tried it, nice stuff!


  • Comes here often
  • 12 comments
  • September 5, 2024

Hi,
I'm trying to run the script for veeam backup and replication v11 but i get this error:

Bad request: Unsupported RESTAPI version. The following versions are supported: v1.0-rev1.

Changing the script x-api-version to 1.0-rev1 I get these errors:

 

root@veeamdashboard:~# ./veeam_backup_and_replication.sh
Successfully obtained bearer token
Writing veeam_vbr_info to InfluxDB
Error: failed to write data: 400 Bad Request: unable to parse 'veeam_vbr_info,veeamVBRId=,veeamVBRName=,veeamVBRVersion=,veeamVBR=192.168.1.150,veeamDatabaseVendor= vbr=1': missing tag value
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
root@veeamdashboard:~#

 

 

And I miss a lot of info on the dashboard (eg Managed Servers, Proxy, Backup repository usage, Backup repositories)

I've created a simple readonly user in Veeam of course, with a "simple" password.

Any idea?


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8372 comments
  • September 5, 2024

Maybe @jorge.delacruz can assist you with this one.


  • New Here
  • 3 comments
  • September 8, 2024
maaron wrote:

Just wanted to add my findings, if you are running influx with an selfsign certificate, you will have to do a find and replace on the sh script:

Find: influx write

Replace: influx write --skip-verify

Another Finding I want to add as I've only just been able to get the dashboard to work.

If you are getting “vnone” showing on your dashboard this is because the the influxdb datasource within Grafana needs to have the query language set to “flux” instead of the default “influxQL”


  • Comes here often
  • 12 comments
  • September 9, 2024

@maaron Already checked,it’s not my case.

Of course thank you!

I miss some data and I get these errors:

 

jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)

 

No idea why (I had to replace the rest api version in the script otherwise it won’t start at all)

 


  • Comes here often
  • 12 comments
  • September 10, 2024

uhm...I’m using version 11 of Veeam, can it be the problem with my errors?


  • Comes here often
  • 12 comments
  • September 10, 2024

Ok I found the problem...needed to replace ALL the occurence of rest-api version...missed some occurence.

 

Now I still get this error at the beginning of the script:

Successfully obtained bearer token
Writing veeam_vbr_info to InfluxDB
Error: failed to write data: 400 Bad Request: unable to parse 'veeam_vbr_info,veeamVBRId=,veeamVBRName=,veeamVBRVersion=,veeamVBR=192.168.1.190,veeamDatabaseVendor= vbr=1': missing tag value
Writing veeam_vbr_sessions to InfluxDB

….

Writing veeam_vbr_sessions to InfluxDB

 

PS: It think the “x-api version” should be put inside a variable at the beginning of the script

 

 

 


  • Comes here often
  • 12 comments
  • September 10, 2024

Ok...finally found the problem with the API and v11.

V11 doesn’t support serverInfo

https://helpcenter.veeam.com/archive/backup/110/vbr_rest/reference/vbr-rest-v1-rev2.html#tag/Service

 

I hope serverInfo is not fundamental for the script

 

I hope this can help someone else

 


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8372 comments
  • September 10, 2024
michelinok wrote:

Ok...finally found the problem with the API and v11.

V11 doesn’t support serverInfo

https://helpcenter.veeam.com/archive/backup/110/vbr_rest/reference/vbr-rest-v1-rev2.html#tag/Service

 

I hope serverInfo is not fundamental for the script

 

I hope this can help someone else

 

Why not update to v12?  Version 11 is fairly old.


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • September 10, 2024

I think adding the API version as variable is a good idea, will revisit the script this week and add a lot of new stuff. Thanks for trusting this Grafana project, it is being fun, and it will get much better as more endpoints come to it.


  • Comes here often
  • 12 comments
  • September 11, 2024

Is it normal that I don’t see replica job statistic in the dashboard? (I can only see backups)


  • Comes here often
  • 12 comments
  • September 11, 2024
Chris.Childerhose wrote:
michelinok wrote:

Ok...finally found the problem with the API and v11.

V11 doesn’t support serverInfo

https://helpcenter.veeam.com/archive/backup/110/vbr_rest/reference/vbr-rest-v1-rev2.html#tag/Service

 

I hope serverInfo is not fundamental for the script

 

I hope this can help someone else

 

Why not update to v12?  Version 11 is fairly old.

We’re working on a new infrastructure in these days but i wanna try this dashboard before installing it on the new servers


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • September 11, 2024

Replicas should be there, where are you missing them, on what widget/widgets? Cheers