From f40e85abee7e78f77e4221144c26b2e851b36691 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 13 Jan 2021 19:31:27 +0100 Subject: [PATCH] Update BackupPC template --- zabbix_templates/Template_App_BackupPC.xml | 229 +++++++++++++++++++++++++++-- 1 file changed, 215 insertions(+), 14 deletions(-) diff --git a/zabbix_templates/Template_App_BackupPC.xml b/zabbix_templates/Template_App_BackupPC.xml index 6854209..8311828 100644 --- a/zabbix_templates/Template_App_BackupPC.xml +++ b/zabbix_templates/Template_App_BackupPC.xml @@ -1,7 +1,7 @@ - 4.4 - 2020-02-17T07:58:01Z + 5.0 + 2021-01-13T18:30:36Z Templates @@ -23,10 +23,185 @@ + BackupPC: General info + backuppc.general + 15m + 0 + 0 + TEXT + + + BackupPC + + + + + BackupPC: Total number of backups + DEPENDENT + backuppc.general[bkp] + 0 + 60d + 1825d + !backup(s) + + + BackupPC + + + + + JSONPATH + $.bkp + + + + backuppc.general + + + + BackupPC: Total full size + DEPENDENT + backuppc.general[full_size] + 0 + 60d + 1825d + B + + + BackupPC + + + + + JSONPATH + $.full_size + + + + backuppc.general + + + + BackupPC: Total history size + DEPENDENT + backuppc.general[history_size] + 0 + 60d + 1825d + B + + + BackupPC + + + + + JSONPATH + $.history_size + + + + backuppc.general + + + + BackupPC: Total number of hosts + DEPENDENT + backuppc.general[hosts] + 0 + 60d + 1825d + !host(s) + + + BackupPC + + + + + JSONPATH + $.hosts + + + + backuppc.general + + + + BackupPC: Global perf score + DEPENDENT + backuppc.general[perf] + 0 + 60d + 1825d + FLOAT + + + BackupPC + + + + + JSONPATH + $.perf + + + + backuppc.general + + + + BackupPC: Global compression ratio + DEPENDENT + backuppc.general[ratio] + 0 + 60d + 1825d + FLOAT + + + BackupPC + + + + + JSONPATH + $.ratio + + + + backuppc.general + + + + BackupPC: Total size + DEPENDENT + backuppc.general[total_size] + 0 + 60d + 1825d + B + + + BackupPC + + + + + JSONPATH + $.total_size + + + + backuppc.general + + + Number of BackupPC processes proc.num[,backuppc,,BackupPC] 10m - 1825d + 60d + 730d BackupPC @@ -38,7 +213,8 @@ Number of raidsync processes proc.num[,root,,BackupPC_raidsync] 10m - 1825d + 60d + 730d BackupPC @@ -65,6 +241,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},bkp] 0 + 60d 1825d @@ -86,6 +263,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},full_size] 0 + 60d 1825d o @@ -108,6 +286,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},history_size] 0 + 60d 1825d o @@ -130,6 +309,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},hosts] 0 + 60d 1825d @@ -151,6 +331,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},perf] 0 + 60d 1825d FLOAT !h/j @@ -174,6 +355,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},ratio] 0 + 60d 1825d FLOAT % @@ -197,6 +379,7 @@ DEPENDENT backuppc.entity[{#BPC_ENTITY},size] 0 + 60d 1825d o @@ -300,6 +483,7 @@ DEPENDENT backuppc.host[{#BPCHOST},age] 0 + 60d 1825d s @@ -335,6 +519,7 @@ DEPENDENT backuppc.host[{#BPCHOST},bkp] 0 + 60d 1825d !backups @@ -357,6 +542,7 @@ DEPENDENT backuppc.host[{#BPCHOST},comp_ratio] 0 + 60d 1825d FLOAT % @@ -380,6 +566,7 @@ DEPENDENT backuppc.host[{#BPCHOST},duration] 0 + 60d 1825d s @@ -402,6 +589,7 @@ DEPENDENT backuppc.host[{#BPCHOST},enabled] 0 + 60d 1825d @@ -423,6 +611,7 @@ DEPENDENT backuppc.host[{#BPCHOST},errors] 0 + 60d 1825d !errors @@ -445,6 +634,7 @@ DEPENDENT backuppc.host[{#BPCHOST},full_size] 0 + 60d 1825d B @@ -467,6 +657,7 @@ DEPENDENT backuppc.host[{#BPCHOST},history_size] 0 + 60d 1825d B @@ -489,6 +680,7 @@ DEPENDENT backuppc.host[{#BPCHOST},new_size] 0 + 60d 1825d B @@ -511,6 +703,7 @@ DEPENDENT backuppc.host[{#BPCHOST},new_size_avg] 0 + 60d 1825d B @@ -533,6 +726,7 @@ DEPENDENT backuppc.host[{#BPCHOST},new_size_median] 0 + 60d 1825d B @@ -555,6 +749,7 @@ DEPENDENT backuppc.host[{#BPCHOST},new_size_q1] 0 + 60d 1825d B @@ -577,6 +772,7 @@ DEPENDENT backuppc.host[{#BPCHOST},new_size_q3] 0 + 60d 1825d B @@ -599,6 +795,7 @@ DEPENDENT backuppc.host[{#BPCHOST},total_size] 0 + 60d 1825d B @@ -624,24 +821,23 @@ WARNING - {#BPC_TOO_SMALL_FACTOR}>0 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=1 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}>4 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} < ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()} - ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} < {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}/{#BPC_TOO_SMALL_FACTOR} and ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 6 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].time()} < 120000) and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 7 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 1 and ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 2 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].time()} > 080000) + {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=1 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}>4 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} > ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} + ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} > {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}*{#BPC_TOO_BIG_FACTOR} and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 7 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 1 and ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 2 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].time()} > {$BPC_SIZE_WARN_FROM_HOUR}) RECOVERY_EXPRESSION - {#BPC_TOO_SMALL_FACTOR}=0 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=0 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}<=4 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} >= ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()} - ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} >= {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}/{#BPC_TOO_SMALL_FACTOR} - Suspiciously small ({ITEM.VALUE3}) backups for {#BPCHOST} - WARNING + {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=0 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}<=4 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} <= ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} + ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} <= {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}*{#BPC_TOO_BIG_FACTOR} + Suspiciously big ({ITEM.VALUE3}) backup for {#BPCHOST} + INFO - {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=1 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}>4 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} > ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} + ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} > {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}*{#BPC_TOO_BIG_FACTOR} and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 7 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 1 and ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 2 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].time()} > 060000) + {#BPC_TOO_SMALL_FACTOR}>0 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=1 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}>4 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} < ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()} - ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} < {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}/{#BPC_TOO_SMALL_FACTOR} and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 6 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 7 and {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 1 and ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].dayofweek()} <> 2 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].time()} > {$BPC_SIZE_WARN_FROM_HOUR}) RECOVERY_EXPRESSION - {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=0 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}<=4 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} <= ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} + ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} <= {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}*{#BPC_TOO_BIG_FACTOR} - Suspuciously big ({ITEM.VALUE3}) backup for {#BPCHOST} - INFO + {#BPC_TOO_SMALL_FACTOR}<0 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=0 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},bkp].last()}<=4 or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} >= ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()} - ({Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q3].last()} - {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_q1].last()}) * 1.5) or {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size].last()} >= {Template_App_BackupPC:backuppc.host[{#BPCHOST},new_size_avg].last()}/{#BPC_TOO_SMALL_FACTOR} + Suspiciously small ({ITEM.VALUE3}) backups for {#BPCHOST} + WARNING {Template_App_BackupPC:backuppc.host[{#BPCHOST},errors].last(0)}>{#BPCMAXERROR} and {Template_App_BackupPC:backuppc.host[{#BPCHOST},enabled].last()}=1 - {ITEM.LASTVALUE1} xfer errors in last backup of {#BPCHOST} + {ITEM.LASTVALUE1} (xfer) in last backup of {#BPCHOST} WARNING - YES @@ -705,6 +901,11 @@ + {$BPC_SIZE_WARN_FROM_HOUR} + 080000 + Size alerts will only start after this hour + + {$EXT_BACKUPS} 0 If set to a positive duration, can alert if no raidsync backups has been made recently