From 93ba949e656e4c4011f44e230f8ada8a7b39f09f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 17 Feb 2020 08:58:26 +0100 Subject: [PATCH] Update ZFS and BackupPC templates --- zabbix_templates/Template_App_BackupPC.xml | 6 +- zabbix_templates/Template_App_ZFS.xml | 5136 ++-------------------------- 2 files changed, 300 insertions(+), 4842 deletions(-) diff --git a/zabbix_templates/Template_App_BackupPC.xml b/zabbix_templates/Template_App_BackupPC.xml index d739650..6854209 100644 --- a/zabbix_templates/Template_App_BackupPC.xml +++ b/zabbix_templates/Template_App_BackupPC.xml @@ -1,7 +1,7 @@ 4.4 - 2019-12-15T18:12:47Z + 2020-02-17T07:58:01Z Templates @@ -624,9 +624,9 @@ WARNING - {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) + {#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) 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_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} + {#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 diff --git a/zabbix_templates/Template_App_ZFS.xml b/zabbix_templates/Template_App_ZFS.xml index bc13d07..105f7f5 100644 --- a/zabbix_templates/Template_App_ZFS.xml +++ b/zabbix_templates/Template_App_ZFS.xml @@ -1,7 +1,7 @@ - 4.2 - 2019-10-29T09:47:22Z + 4.4 + 2020-02-17T07:55:13Z Templates @@ -11,7 +11,6 @@ {Template_App_ZFS:vfs.zfs.stats[arcstats,l2_writes_error].last()}>0 or {Template_App_ZFS:vfs.zfs.stats[arcstats,l2_io_error].last()}>0 or {Template_App_ZFS:vfs.zfs.stats[arcstats,l2_cksum_bad].last()}>0 - 0 - ZFS: l2arc errors detected - 0 - - - 0 - 3 - - 0 - 0 - - - - - {Template_App_ZFS:vfs.zfs.stats[arcstats,demand_data_hits_pct].avg(1h)}<{$ZFS_ARC_HIT_DATA_PCT_WARN} - 0 - - ZFS: Low ARC data efficiency - 0 - - - 0 - 1 - - 0 - 0 - - - - - {Template_App_ZFS:vfs.zfs.stats[arcstats,hits_pct].avg(1h)}<{$ZFS_ARC_HIT_PCT_WARN} - 0 - - ZFS: Low ARC global efficiency - 0 - - - 0 - 1 - - 0 - 0 - - - - - {Template_App_ZFS:vfs.zfs.stats[arcstats,demand_metadata_hits_pct].avg(900)}<{$ZFS_ARC_HIT_METADATA_PCT_WARN} - 0 - - ZFS: Low ARC metadata efficiency - 0 - - - 0 - 1 - - 0 - 0 - - + AVERAGE ZFS: ARC: Hits ratio - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - 0 - 2 + BOLD_LINE FF0000 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,hits_pct] @@ -6719,11 +2240,8 @@ 1 - 2 + BOLD_LINE BF00FF - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,demand_data_hits_pct] @@ -6731,11 +2249,8 @@ 2 - 2 + BOLD_LINE 0040FF - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,demand_metadata_hits_pct] @@ -6743,11 +2258,8 @@ 3 - 2 + BOLD_LINE FFBF00 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,l2_hits_pct] @@ -6757,29 +2269,10 @@ ZFS: ARC: sizes (data / metadata) - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 1 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 + STACKED - 0 - 0 1A7C11 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,data_size] @@ -6787,11 +2280,7 @@ 1 - 0 F63100 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,metadata_size] @@ -6799,11 +2288,7 @@ 2 - 0 2774A4 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,compress_win] @@ -6813,29 +2298,10 @@ ZFS: ARC: sizes (mfu / mru) - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 1 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 + STACKED - 0 - 0 F63100 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,mfu_size] @@ -6843,11 +2309,7 @@ 1 - 0 1A7C11 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,mru_size] @@ -6855,11 +2317,7 @@ 2 - 0 2774A4 - 0 - 2 - 0 Template_App_ZFS vfs.zfs.stats[arcstats,compress_win]