That solution uses API to gather metrics from bareos, all you need to configure on bareos-dir side is a profile and user for monitoring (check examples bareos-dir.d/console/zabbix.conf and bareos-dir.d/profile/monitoring.conf)
- Gather data via API
- LLD discovery for active jobs
- Last job's status & size, job estimate size
- Bareos-dir health (via director's time metric)
- SQL connectivity (via total jobs metric)
- python 3
- python-bareos module
- Configure bareos's profile and user for monitoring (check examples)
- Install python-bareos module (it can be found in official repository since v18 or in pip)
- Create config at zabbix_bareos.yml, set host, user and password:
---
host: bareos-dir.example.org
user: zabbix
password: ChangeMe
- Run bareos.discovery.py to be sure that all was configured correctly (you should get valid JSON)
- Put scripts in zabbix-agent scripts dir & set correct permissions
- Put userparameter_bareos.conf in zabbix_agentd.d dir and restart agent
- Import value maps
- Import template
- Assign template on host