xtonousou / VeeamBR-Zabbix-Template

Veeam Backup & Replication 11 Zabbix Template using RESTful API
GNU General Public License v3.0
3 stars 1 forks source link
backup linux monitoring resftul veeam veeam-backup zabbix zabbix-python zabbix-templates

VEEAM Backup & Replication RESTful API Zabbix Template

Compatibility

This is currently tested on Veeam Backup & Replication 11 build 11.0.0.837 with RESTful API version 1.0-rev1.

Requirements

You need to install the following packages on your system: python3, python3-pip, curl, jq, bash, sudo. When you have python3 and python3-pip installed, run the following command to install required python modules: pip3 install -r requirements.txt.

Usage

This is an example of .env file:

VEEAM_USERNAME=veeam_mon_svc
VEEAM_PASSWORD=MyAw3s0m3P@ssw0rd
VEEAM_HOST=veeam-bkp.local
VEEAM_API_VERSION=1.0-rev1
VEEAM_CACHE_FILE=/tmp/.zabbix-veeam.json

The script can either be deployed on Zabbix Server or Zabbix Proxy.

Notes

The script does not verify the certificate when it requests data from the Veeam API. If you have signed certificates, it is highly recommended to change the verify=False argument to verify=True inside collect.py script.

Do not delete the VEEAM_CACHE_FILE manually, let the credential-manager.sh script handle this. If you need to delete the file, just kill the process of credential-manager.sh script. To re-run the credential-manager.sh issue the following snippet:

sudo -u zabbix /bin/bash /usr/lib/zabbix/externalscripts/VeeamBR-Zabbix-Template/credential-manager.sh &
disown
ps auxf | grep credential-manager.sh | grep -v grep  # verify that the process is running

Troubleshooting

Check the API connection from the Zabbix Server/Proxy using the below command.

curl -s -k https://<veeam-ip>:9419/swagger