Dockerized BackupPc and local zabbix agent

This commit is contained in:
MJ Antipode 2020-04-15 01:45:13 +02:00
parent 90e2c1d9e7
commit 29a1c079c4

View File

@ -4,6 +4,36 @@ This is based on script found in thread https://www.zabbix.com/forum/showthread.
Tested with Zabbix 4.4 (http://www.zabbix.com/) and Backuppc v4.3.2 (http://backuppc.sourceforge.net/). Tested with Zabbix 4.4 (http://www.zabbix.com/) and Backuppc v4.3.2 (http://backuppc.sourceforge.net/).
## Docker and adaptations
This template has been adapted to work with a Dockerized version of BackupPC, especially (https://github.com/adferrand/docker-backuppc)
### Install a Zabbix Agent on the Docker host
We need to monitor the physical host so we'll benefot from his connection to docker.
You'll need to adjust these two values on the agent and the Timeout has to be adjusted on the server also !
EnableRemoteCommands=1
Timeout=6
### Add zabbix_sender binary to the adferrand/docker-backuppc container
docker exec -u root -it backuppc bash
apk add zabbix-utils
exit
### Replicate our scripts on your server and give them the good rights (you should already have the same user/group)
mkdir /home/backuppc/scripts
cd /home/backuppc/scripts
wget https://git.antipode.net/antipode.info/zabbix-backuppc/raw/branch/master/home/backuppc/scripts/zabbix-backuppc.pl
wget https://git.antipode.net/antipode.info/zabbix-backuppc/raw/branch/master/home/backuppc/zabbix-discover-backuppc.pl
chown -R backuppc:backuppc /home/backuppc/scripts
chmod +x /home/backuppc/scripts/zabbix-*
### Import the template XML file to your server and assign it to your BackupPC hosts
## The template contains ## The template contains
### Backuppc ### Backuppc