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