Monitoring backups

f4242

Well-Known Member
Dec 19, 2016
101
4
58
Quebec, QC
Hello,

I'm trying to find a way to automate the backup monitoring with Zabbix.

I added a backup script hook in PVE so every time a VM is backed up, the zabbix server is notified. This allow me to configure a trigger based on last backup date so there is an alert if a VM is not backed up for 48h.

I would like to monitor the verify and sync jobs. Is there a way to get the last date of successful verify and sync jobs? It can be with some script hook, command line or api.

Thank you!
 
Last edited:
Why do you need an external script for this?

I didn't build it myself in Zabbix yet but you should be able to build discoveries with PBS json api:

https://<pbs_server_address>:8007/api2/json/
https://<pbs_server_address>:8007/api2/json/nodes/<pbs_node_name>/tasks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!