Skip to main content

Grafana Dashboard for Veeam Backup & Replication


Show first post

111 comments

Scott
Forum|alt.badge.img+9
  • Veeam Legend
  • 998 comments
  • June 19, 2023

I’m running Influx, Telegraf, and Grafana on a windows box. It was MUCH easier to get it setup in Linux, especially because I wanted it to have automatic windows updates/reboot, and have it start itself and display on a dashboard without any intervention. I got it going but if you follow a Linux Grafana tutorial it just seems to be so much easier. 

 

That being said, I need to try this dashboard out. It looks great.  What permissions are needed to gather the data? Can I create a read only account for this? 

 


  • New Here
  • 1 comment
  • July 6, 2023

Appears I’m a bit stuck and haven’t been able to resolve the issue. Upon running the script I get the following errors

Writing veeam_vbr_info to InfluxDB
./veeam_backup_and_replication.sh: line 63: influx: command not found
Writing veeam_vbr_sessions to InfluxDB
./veeam_backup_and_replication.sh: line 112: influx: command not found

 

Both lines reference “influx write \” . Any ideas what I might be missing here?


coolsport00
Forum|alt.badge.img+20
  • Veeam Legend
  • 4133 comments
  • July 6, 2023

I personally haven’t been able to get to the install yet, but hopefully within the next couple wks. Hopefully Jorge can give an assist here...


Hello everyone, does the sh code also work with Veeam B&R v12? Build 12.0.0.1420


coolsport00
Forum|alt.badge.img+20
  • Veeam Legend
  • 4133 comments
  • July 8, 2023

I don’t see why not tbh; maybe Jorge can chime in with the definitive answer….


  • New Here
  • 2 comments
  • July 13, 2023
Geoff Burke wrote:

Hi Jorge, don’t know if you got this, I looked it up and maybe it is my version of influxdb. I will continue to search but wanted to run the error by you:

Writing veeam_vbr_info to InfluxDB
Error: failed to write data: 400 Bad Request: unable to parse 'veeam_vbr_info,veeamVBRId=,veeamVBRName=,veeamVBRVersion=,veeamVBR=mvm-ldc-vbr-01:9419 vbr=1': missing tag value

 

My guess is perhaps that my version of influxdb has some syntax changes? 

Have you faced this error ? :

Error: failed to write data: 400 Bad Request: invalid field format

Because i think it’s related to versions !
 


  • New Here
  • 1 comment
  • July 14, 2023

i think the RestApi isn't available in ‘Community version’ == REST API is not available in your product edition.


  • New Here
  • 2 comments
  • July 14, 2023
entqr wrote:

i think the RestApi isn't available in ‘Community version’ == REST API is not available in your product edition.

I have Veeam B&R 12 Enterprise Plus it’s not a community version.


leduardoserrano
Forum|alt.badge.img+6
  • On the path to Greatness
  • 353 comments
  • July 29, 2023

Thanks @jorge.delacruz !


  • New Here
  • 1 comment
  • August 28, 2023

Is it possible to monitor multiple VBR with this system or is limited to the one specified in the configuration?


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8479 comments
  • August 28, 2023
Valerio wrote:

Is it possible to monitor multiple VBR with this system or is limited to the one specified in the configuration?

I would think if you have multiple VBR servers connected to VEM then you can monitor more than one system.  I am just trying to get it to work with one at the moment.


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8479 comments
  • August 28, 2023

@jorge.delacruz can you supply multiple VBR servers in the script file?  Still working on the VEM one with no results so far.  Maybe this would work as an alternative.


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • August 30, 2023
Chris.Childerhose wrote:

@jorge.delacruz can you supply multiple VBR servers in the script file?  Still working on the VEM one with no results so far.  Maybe this would work as an alternative.

Hello, well yes, you can create different .sh and schedule them. I am not sure if managing multiple VBRs within one script is a good idea. Maybe if I tune it to specify VBRs and credentials on different files.


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • August 30, 2023
Valerio wrote:

Is it possible to monitor multiple VBR with this system or is limited to the one specified in the configuration?

Hello, it is one VBR per file for now. But very easy to create more, just have different .sh Not much different that what Veeam ONE does today, polling every VBR.


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • August 30, 2023
Jan.Schmidt wrote:

Hello everyone, does the sh code also work with Veeam B&R v12? Build 12.0.0.1420

Yes of course, the code works with v11, v11a, v12, and v12 patches


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • August 30, 2023
Scott wrote:

I’m running Influx, Telegraf, and Grafana on a windows box. It was MUCH easier to get it setup in Linux, especially because I wanted it to have automatic windows updates/reboot, and have it start itself and display on a dashboard without any intervention. I got it going but if you follow a Linux Grafana tutorial it just seems to be so much easier. 

 

That being said, I need to try this dashboard out. It looks great.  What permissions are needed to gather the data? Can I create a read only account for this? 

 

Hello, there is not such thing as readonly API accounts today I am afraid, so you will need an administrator account. That being said, I am expecting your VBR is already hardened enough to have MFA for RDP, all ports secured, etc. You can enable the API port incoming only from the Linux box, etc.


jorge.delacruz
Forum|alt.badge.img+7
  • Author
  • Community Manager
  • 120 comments
  • August 30, 2023
gocyclist wrote:

Appears I’m a bit stuck and haven’t been able to resolve the issue. Upon running the script I get the following errors

Writing veeam_vbr_info to InfluxDB
./veeam_backup_and_replication.sh: line 63: influx: command not found
Writing veeam_vbr_sessions to InfluxDB
./veeam_backup_and_replication.sh: line 112: influx: command not found

 

Both lines reference “influx write \” . Any ideas what I might be missing here?

You need the InfluxDB Client, if running the script from an InfluxDB server, that is installed, if not, it is required: https://docs.influxdata.com/influxdb/cloud/tools/influx-cli/?t=Linux


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8479 comments
  • August 30, 2023
jorge.delacruz wrote:
Chris.Childerhose wrote:

@jorge.delacruz can you supply multiple VBR servers in the script file?  Still working on the VEM one with no results so far.  Maybe this would work as an alternative.

Hello, well yes, you can create different .sh and schedule them. I am not sure if managing multiple VBRs within one script is a good idea. Maybe if I tune it to specify VBRs and credentials on different files.

Sounds good.  I will test this out and see.


  • New Here
  • 1 comment
  • November 11, 2023

@jorge.delacruz

Many thanks for sharing this much appreciate.

While discussing this with my team, one query was raised for Linux-InfulxDB Server Protection. I hope the daily VM backup in Veeam should be enough.


Geoff Burke
Forum|alt.badge.img+22
  • Veeam Legend, Veeam Vanguard
  • 1317 comments
  • November 11, 2023

Hi Jonyrock,  I might also run a pre-backup script in the Veeam job as well using the builtin utility

https://docs.influxdata.com/influxdb/v1/administration/backup_and_restore/

 

cheers


  • New Here
  • 0 comments
  • December 5, 2023

Hi.

Great job!!!! Thank you very much!

I have some problems with jobs on vSphere only. When the script is working Hyper-V jobs are well processed - but when it comes from vSphere i get this error:

Writing veeam_vbr_backupobjects to InfluxDB
Writing veeam_vbr_backupobjects to InfluxDB
Writing veeam_vbr_backupobjects to InfluxDB
Writing veeam_vbr_backupobjects to InfluxDB
Writing veeam_vbr_backupobjects to InfluxDB
Writing veeam_vbr_backupobjects to InfluxDB
Error: failed to write data: 400 Bad Request: unable to parse 'veeam_vbr_backupobjects,veeamVBR=10.x.x.x,veeamVBRBobjectName=WACOM-SRV,veeamVBRBobjecttype=VM,veeamVBRBobjectPlatform=VMware,veeamVBRBobjectviType=VirtualMachine,veeamVBRBobjectObjectId=vm-12082,veeamVBRBobjectPath=VCENTER2-VM\DC HUAWEI\KLASTER5\WACOM-SRV restorePointsCount=5': invalid field format

 

Effect is I can’t see any of Veeam jobs on the dashboard ;((

 

Could you help me please?

Debian 12, InfluxDB 2.7.4-1


  • New Here
  • 5 comments
  • March 13, 2024

Hi @jorge.delacruz any ideas with the following error: 

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.0.54,veeamDatabaseVendor= vbr=1': missing tag value

Veeam Version: 12.1.1.56, License: Enterprise Plus, NFR License.

 


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

Hi @jorge.delacruz any ideas with the following error: 

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.0.54,veeamDatabaseVendor= vbr=1': missing tag value

Veeam Version: 12.1.1.56, License: Enterprise Plus, NFR License.

 

Hello, not getting any data, most likely is user/pass problem, please verify you can connect with the same user/pass in your swagger.


  • New Here
  • 5 comments
  • March 13, 2024

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


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

Hello, please remove the file and download the new file from github, change your user/pass, and run it, hopefully we will have more clarity on the issue.

 

Thanks!


Comment