[Zabbix Integration] UrBackup Client Backup Monitoring Template (with LLD + Triggers)

Hi all,

I’ve published a Zabbix 7.0+ template for monitoring UrBackup client backups using Zabbix agent (active) and a structured JSON log file.

:link: GitHub: GitHub - Garfieldttt/zabbix-urbackup-template: Zabbix 7.0+ Template for monitoring UrBackup clients using JSON log parsing and LLD.


:white_check_mark: Key Features

  • Reads /var/log/urbackup-backups.json
  • Automatically discovers clients using Low-Level Discovery (LLD)
  • Includes triggers for:
    • No successful backup within a configurable time

:package: Monitored Items per Client

  • backup.state[{#CLIENT}] – Backup result (OK, failed, issues, etc.)
  • backup.last.backup[{#CLIENT}] – Timestamp of the last backup
  • backup.total.size[{#CLIENT}] – Backup size (in MB)
  • backup.connectivity[{#CLIENT}] – Client online/offline status

Feedback and contributions welcome!

2 Likes

AWE!!! Yes, thank you! This is a very welcome development! Zabbix and UrBackup symbiosis.
For those not familiar with Zabbix… it’s more than just a “free” open-source monitoring platform. It is a companion that can perform a great deal of functions that will make your life easies.
No, I am not an affiliate, not benifitting from Zabbix financially or in any other way beyond what the software offers. I just love sharing about stuff that makes our lives better.

Thanks, Rines.
The template should include all the important alerts. A Bash script reads the data from the SQLite database and writes it to a JSON file.
Zabbix then retrieves this data – provided that Zabbix Agent 2 is installed on the UrBackup server (Linux, e.g. Debian or Ubuntu) – as a raw item.
Using a discovery rule and item prototypes, the individual items are automatically discovered.
The rest can be derived from the GitHub README.

Currently, this is only supported on systems from the Debian family (e.g. Debian, Ubuntu).
However, in theory, it should also work on other systems if you adjust the path to backup_server.db in the Bash script accordingly – though I haven’t been able to test this yet.
I’m also working on templates for other Linux systems.

If you have any questions or suggestions for improvement, feel free to reach out.

1 Like

Hello everyone,

Quick update on the changes:

  • Fixed status errors: Backup statuses were sometimes displayed incorrectly and are now always updated correctly.
  • Added “disabled” status in the Zabbix template: The App UrBackup Client Backup.yaml template now shows the disabled state when backups are explicitly turned off.
1 Like