zabbix-backuppc/zabbix-templates/zabbix-backuppc-template.xml
antipode.info 57884c5c91 Update zabbix-backuppc-template.xml
Exported corrected template for Zabbix 4.4 with values adjusted for Docker image BackupPC and values over 1TB.
2020-04-15 00:27:58 +02:00

970 lines
46 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.4</version>
<date>2020-04-14T22:24:39Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template App BackupPC</template>
<name>Template App BackupPC</name>
<description>Based on our fork : https://git.antipode.net/antipode.info/zabbix-backuppc</description>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>BackupPC</name>
</application>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<items>
<item>
<name>BackupPC - Config Uptime</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.config_load_time</key>
<delay>0</delay>
<history>10d</history>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool Directory Count (Compressed)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.cpool_dir_count</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Count (Compressed)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.cpool_file_count</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Max Links (Compressed)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.cpool_file_link_max</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Repeat (Compressed)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.cpool_file_repeat</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Repeat Max (Compressed)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.cpool_file_repeat_max</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool Size (Compressed)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.cpool_size</key>
<delay>0</delay>
<history>10d</history>
<units>B</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>1024</params>
</step>
</preprocessing>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Hosts with full age more than 1 week</name>
<type>TRAP</type>
<key>backuppc.hosts_full_age</key>
<delay>0</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{str(NONE)}=0</expression>
<name>BackupPC - {HOSTNAME} have hosts with full backup older than 1 week</name>
<priority>HIGH</priority>
<description>BackupPC has some hosts missing weekly full backup. Please take action to correct.</description>
</trigger>
</triggers>
</item>
<item>
<name>BackupPC - Full Backup Count</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_full_count</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Full Backup Size</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_full_size</key>
<delay>0</delay>
<history>10d</history>
<units>B</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Average Backup Speed (Full)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_full_speed</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>FLOAT</value_type>
<units>B/sec</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Incremental Backup Count</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_incr_count</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Incremental Backup Size</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_incr_size</key>
<delay>0</delay>
<history>10d</history>
<units>B</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Average Backup Speed (Incremental)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_incr_speed</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>FLOAT</value_type>
<units>B/sec</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Hosts with No backups (2 Days)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_nobackup_2</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Hosts with No backups (3 Days)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_nobackup_3</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Hosts with No backups (4 Days)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_nobackup_4</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Hosts with No backups (5 Days)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.hosts_nobackup_5</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{str(NONE)}=0</expression>
<name>BackupPC - Host without Backups (5 Days)</name>
<priority>HIGH</priority>
<description>There are some hosts that have not been backed up in 5 Days, this should be checked immediately.</description>
</trigger>
</triggers>
</item>
<item>
<name>BackupPC - Jobs (Full Backup)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.jobs_full</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Jobs (Incremental Backup)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.jobs_incr</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Jobs (Other Backup)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.jobs_other</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool Directory Count</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.pool_dir_count</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Count</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.pool_file_count</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Max Links</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.pool_file_link_max</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Repeat</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.pool_file_repeat</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool File Repeat Max</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.pool_file_repeat_max</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Pool Size</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.pool_size</key>
<delay>0</delay>
<history>10d</history>
<units>kbytes</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>1024</params>
</step>
</preprocessing>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Queue (Background)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.queue_background</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Queue (Command)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.queue_command</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Queue (User)</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.queue_user</key>
<delay>0</delay>
<history>10d</history>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Uptime</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.uptime</key>
<delay>0</delay>
<history>10d</history>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Version</name>
<type>TRAP</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>backuppc.version</key>
<delay>0</delay>
<history>10d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<units>uptime</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Memory Usage</name>
<type>ZABBIX_ACTIVE</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>proc.mem[,backuppc]</key>
<delay>120</delay>
<value_type>FLOAT</value_type>
<units>B</units>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - BackupPC Process</name>
<type>ZABBIX_ACTIVE</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>proc.num[BackupPC]</key>
<delay>120</delay>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{sum(#3)}=0</expression>
<name>BackupPC - Server not Running</name>
<priority>AVERAGE</priority>
<description>The BackupPC process it not running, try restarting the service.</description>
</trigger>
</triggers>
</item>
<item>
<name>BackupPC - BackupPC_dump Process</name>
<type>ZABBIX_ACTIVE</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>proc.num[BackupPC_dump]</key>
<delay>120</delay>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - BackupPC_link Process</name>
<type>ZABBIX_ACTIVE</type>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets.1</snmp_oid>
<key>proc.num[BackupPC_link]</key>
<delay>120</delay>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - Collect Data</name>
<type>ZABBIX_ACTIVE</type>
<key>system.run[&quot;docker exec -u backuppc -t backuppc bash -c '/home/backuppc/scripts/zabbix-backuppc.pl&quot;]</key>
<delay>300</delay>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>BackupPC - BackupPC_nightly Process</name>
<type>ZABBIX_ACTIVE</type>
<key>system.run[&quot;docker exec -u backuppc -t backuppc bash -c 'ps waux | grep BackupPC_nightly | grep -v grep | wc -l'&quot;]</key>
<delay>120</delay>
<applications>
<application>
<name>BackupPC</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Discover backup hosts</name>
<key>system.run[&quot;docker exec -u backuppc -t backuppc bash -c '/home/backuppc/scripts/zabbix-discover-backuppc.pl'&quot;]</key>
<delay>30</delay>
<filter>
<conditions>
<condition>
<macro>{#BACKUPHOST}</macro>
<value>.*</value>
<formulaid>A</formulaid>
</condition>
</conditions>
</filter>
<item_prototypes>
<item_prototype>
<name>{#BACKUPHOST} full backup age</name>
<type>TRAP</type>
<key>backuppc.fullage[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>days</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;{$BACKUPPC_FULL_AGE_MAX_DAYS:&quot;{#BACKUPHOST}&quot;}</expression>
<name>{#BACKUPHOST} has full backup older than {$BACKUPPC_FULL_AGE_MAX_DAYS:&quot;{#BACKUPHOST}&quot;} days</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} full backup BadFile</name>
<type>TRAP</type>
<key>backuppc.fullbadfile[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has bad file in full backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} full backup BadShare</name>
<type>TRAP</type>
<key>backuppc.fullbadshare[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has bad share in full backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} full backup duration</name>
<type>TRAP</type>
<key>backuppc.fulldur[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>s</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} full backup xfer errors</name>
<type>TRAP</type>
<key>backuppc.fullerrs[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has error in full backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} full backup size</name>
<type>TRAP</type>
<key>backuppc.fullsize[{#BACKUPHOST}]</key>
<delay>0</delay>
<units>B</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} full backup tar errors</name>
<type>TRAP</type>
<key>backuppc.fulltarerrs[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has tar error in full backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup age</name>
<type>TRAP</type>
<key>backuppc.incrage[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>days</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;{$BACKUPPC_INCR_AGE_MAX_DAYS:&quot;{#BACKUPHOST}&quot;}</expression>
<name>{#BACKUPHOST} has INCR backup older than {$BACKUPPC_INCR_AGE_MAX_DAYS:&quot;{#BACKUPHOST}&quot;} days</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup BadFile</name>
<type>TRAP</type>
<key>backuppc.incrbadfile[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has bad file in incremental backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup BadShare</name>
<type>TRAP</type>
<key>backuppc.incrbadshare[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has bad share in incremental backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup duration</name>
<type>TRAP</type>
<key>backuppc.incrdur[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>s</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup xfer errors</name>
<type>TRAP</type>
<key>backuppc.increrrs[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has error in incremental backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup size</name>
<type>TRAP</type>
<key>backuppc.incrsize[{#BACKUPHOST}]</key>
<delay>0</delay>
<units>B</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>{#BACKUPHOST} incremental backup tar errors</name>
<type>TRAP</type>
<key>backuppc.incrtarerrs[{#BACKUPHOST}]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>p</units>
<applications>
<application>
<name>BackupPC - backups</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;0</expression>
<name>{#BACKUPHOST} has tar error in incremental backup</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
<request_method>POST</request_method>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$BACKUPPC_FULL_AGE_MAX_DAYS}</macro>
<value>8</value>
</macro>
<macro>
<macro>{$BACKUPPC_INCR_AGE_MAX_DAYS}</macro>
<value>2</value>
</macro>
</macros>
</template>
</templates>
<triggers>
<trigger>
<expression>{Template App BackupPC:backuppc.hosts_nobackup_2.str(NONE)}=0 and {Template App BackupPC:backuppc.hosts_nobackup_3.str(NONE)}&lt;&gt;0 and {Template App BackupPC:backuppc.hosts_nobackup_4.str(NONE)}&lt;&gt;0 and {Template App BackupPC:backuppc.hosts_nobackup_5.str(NONE)}&lt;&gt;0</expression>
<name>BackupPC - Host without Backups (2 Days)</name>
<priority>INFO</priority>
<description>There are some hosts that have not been backed up in 2 Days, while this is not a problem it should be monitored.</description>
</trigger>
<trigger>
<expression>{Template App BackupPC:backuppc.hosts_nobackup_3.str(NONE)}=0 and {Template App BackupPC:backuppc.hosts_nobackup_4.str(NONE)}&lt;&gt;0 and {Template App BackupPC:backuppc.hosts_nobackup_5.str(NONE)}&lt;&gt;0</expression>
<name>BackupPC - Host without Backups (3 Days)</name>
<priority>WARNING</priority>
<description>There are some hosts that have not been backed up in 3 Days, this should be checked soon.</description>
</trigger>
<trigger>
<expression>{Template App BackupPC:backuppc.hosts_nobackup_4.str(NONE)}=0 and {Template App BackupPC:backuppc.hosts_nobackup_5.str(NONE)}&lt;&gt;0</expression>
<name>BackupPC - Host without Backups (4 Days)</name>
<priority>AVERAGE</priority>
<description>There are some hosts that have not been backed up in 4 Days, this should be checked immediately.</description>
</trigger>
</triggers>
</zabbix_export>