From 29a1c079c4ce7b64ebb021dc8fb55c1d7b0eadca Mon Sep 17 00:00:00 2001 From: "antipode.info" Date: Wed, 15 Apr 2020 01:45:13 +0200 Subject: [PATCH] Dockerized BackupPc and local zabbix agent --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index ee1edc7..721c036 100644 --- a/README.md +++ b/README.md @@ -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/). +## 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 ### Backuppc