zabbix-backuppc/README.md

126 lines
4.2 KiB
Markdown
Raw Normal View History

2015-03-07 21:26:49 +01:00
# Monitoring Backuppc with Zabbix
2015-03-07 21:55:11 +01:00
This is based on script found in thread https://www.zabbix.com/forum/showthread.php?t=17273
Tested with Zabbix 4.4 (http://www.zabbix.com/) and Backuppc v4.3.2 (http://backuppc.sourceforge.net/).
2015-03-07 21:48:44 +01:00
## 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
2015-03-07 21:48:44 +01:00
## The template contains
### Backuppc
Information about the BackupPc itself.
#### Items
* BackupPC - Average Backup Speed (Full)
* BackupPC - Average Backup Speed (Incremental)
* BackupPC - BackupPC Process
* BackupPC - BackupPC_dump Process
* BackupPC - BackupPC_link Process
* BackupPC - BackupPC_nightly Process
* BackupPC - Collect Data
* BackupPC - Config Uptime
* BackupPC - Full Backup Count
* BackupPC - Full Backup Size
* BackupPC - Hosts with full age more than 1 week
* BackupPC - Hosts with No backups (2 Days)
* BackupPC - Hosts with No backups (3 Days)
* BackupPC - Hosts with No backups (4 Days)
* BackupPC - Hosts with No backups (5 Days)
* BackupPC - Incremental Backup Count
* BackupPC - Incremental Backup Size
* BackupPC - Jobs (Full Backup)
* BackupPC - Jobs (Incremental Backup)
* BackupPC - Jobs (Other Backup)
* BackupPC - Memory Usage
* BackupPC - Pool Directory Count
* BackupPC - Pool Directory Count (Compressed)
* BackupPC - Pool File Count
* BackupPC - Pool File Count (Compressed)
* BackupPC - Pool File Max Links
* BackupPC - Pool File Max Links (Compressed)
* BackupPC - Pool File Repeat
* BackupPC - Pool File Repeat (Compressed)
* BackupPC - Pool File Repeat Max
* BackupPC - Pool File Repeat Max (Compressed)
* BackupPC - Pool Size
* BackupPC - Pool Size (Compressed)
* BackupPC - Queue (Background)
* BackupPC - Queue (Command)
* BackupPC - Queue (User)
* BackupPC - Uptime
* BackupPC - Version
#### Triggers
* BackupPC - Host without Backups (2 Days)
* BackupPC - Host without Backups (3 Days)
* BackupPC - Host without Backups (4 Days)
* BackupPC - Host without Backups (5 Days)
* BackupPC - Server not Running
* BackupPC - {HOSTNAME} have hosts with full backup older than 1 week
### Backuppc - backups
Discovery from individual backups
2019-04-18 19:28:12 +02:00
2019-07-11 17:31:23 +02:00
system.run["sudo -u backuppc /usr/bin/zabbix-discover-backuppc.pl"]
2015-03-07 21:48:44 +01:00
#### Items
* {#BACKUPHOST} full backup age
* {#BACKUPHOST} full backup BadFile
* {#BACKUPHOST} full backup BadShare
* {#BACKUPHOST} full backup duration
* {#BACKUPHOST} full backup size
* {#BACKUPHOST} full backup tar errors
* {#BACKUPHOST} full backup xfer errors
* {#BACKUPHOST} incremental backup age
* {#BACKUPHOST} incremental backup BadFile
* {#BACKUPHOST} incremental backup BadShare
* {#BACKUPHOST} incremental backup duration
* {#BACKUPHOST} incremental backup size
* {#BACKUPHOST} incremental backup tar errors
* {#BACKUPHOST} incremental backup xfer errors
#### Triggers
* {#BACKUPHOST} has bad file in full backup
* {#BACKUPHOST} has bad file in incremental backup
* {#BACKUPHOST} has bad share in full backup
* {#BACKUPHOST} has bad share in incremental backup
* {#BACKUPHOST} has error in full backup
* {#BACKUPHOST} has error in incremental backup
* {#BACKUPHOST} has tar error in full backup
* {#BACKUPHOST} has tar error in incremental backup