From a0d5e1e6175eab12dad98cdc722524c90b4c61bf Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 1 Aug 2021 19:35:29 +0200 Subject: [PATCH 1/3] Add item for displaying the whole pool's status instead of only single vdevs. --- template/zol_template.xml | 63 ++++++++++++++++++++++++++++ userparameters/ZoL_with_sudo.conf | 1 + userparameters/ZoL_without_sudo.conf | 1 + 3 files changed, 65 insertions(+) diff --git a/template/zol_template.xml b/template/zol_template.xml index 4ccfb26..d35d897 100644 --- a/template/zol_template.xml +++ b/template/zol_template.xml @@ -2403,6 +2403,69 @@ Home of the project: https://github.com/Cosium/zabbix_zfs-on-linux + + Zpool {#POOLNAME} Status + 7 + + + zfs.zpool.status[{#POOLNAME}] + 5m + 30d + 0 + 0 + 4 + + + + + 0 + 0 + + 0 + + + + 0 + + + + + + + 0 + + + ZFS + + + ZFS zpool + + + + + + + 3s + + + + 200 + 1 + 0 + + + 0 + 0 + 0 + 0 + + + + 0 + 0 + + + Zpool {#POOLNAME} read throughput 18 diff --git a/userparameters/ZoL_with_sudo.conf b/userparameters/ZoL_with_sudo.conf index 9cd46ec..0718615 100644 --- a/userparameters/ZoL_with_sudo.conf +++ b/userparameters/ZoL_with_sudo.conf @@ -11,6 +11,7 @@ UserParameter=zfs.vdev.discovery,/usr/bin/sudo /sbin/zpool list -Hv | grep '^[[: # pool health UserParameter=zfs.zpool.health[*],/usr/bin/sudo /sbin/zpool list -H -o health $1 +UserParameter=zfs.zpool.health[*],/usr/bin/sudo /sbin/zpool status $1 # get any fs option UserParameter=zfs.get.fsinfo[*],/usr/bin/sudo /sbin/zfs get -o value -Hp $2 $1 diff --git a/userparameters/ZoL_without_sudo.conf b/userparameters/ZoL_without_sudo.conf index 5611789..568f056 100644 --- a/userparameters/ZoL_without_sudo.conf +++ b/userparameters/ZoL_without_sudo.conf @@ -11,6 +11,7 @@ UserParameter=zfs.vdev.discovery,/sbin/zpool list -Hv | grep '^[[:blank:]]' | eg # pool health UserParameter=zfs.zpool.health[*],/sbin/zpool list -H -o health $1 +UserParameter=zfs.zpool.health[*],/sbin/zpool status $1 # get any fs option UserParameter=zfs.get.fsinfo[*],/sbin/zfs get -o value -Hp $2 $1 From c62a8ce844e0ba2c96f97c0f7cc2ec51eb31a2dc Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 1 Aug 2021 19:37:29 +0200 Subject: [PATCH 2/3] Forgot to change this --- userparameters/ZoL_with_sudo.conf | 2 +- userparameters/ZoL_without_sudo.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/userparameters/ZoL_with_sudo.conf b/userparameters/ZoL_with_sudo.conf index 0718615..f13ae84 100644 --- a/userparameters/ZoL_with_sudo.conf +++ b/userparameters/ZoL_with_sudo.conf @@ -11,7 +11,7 @@ UserParameter=zfs.vdev.discovery,/usr/bin/sudo /sbin/zpool list -Hv | grep '^[[: # pool health UserParameter=zfs.zpool.health[*],/usr/bin/sudo /sbin/zpool list -H -o health $1 -UserParameter=zfs.zpool.health[*],/usr/bin/sudo /sbin/zpool status $1 +UserParameter=zfs.zpool.status[*],/usr/bin/sudo /sbin/zpool status $1 # get any fs option UserParameter=zfs.get.fsinfo[*],/usr/bin/sudo /sbin/zfs get -o value -Hp $2 $1 diff --git a/userparameters/ZoL_without_sudo.conf b/userparameters/ZoL_without_sudo.conf index 568f056..6449b71 100644 --- a/userparameters/ZoL_without_sudo.conf +++ b/userparameters/ZoL_without_sudo.conf @@ -11,7 +11,7 @@ UserParameter=zfs.vdev.discovery,/sbin/zpool list -Hv | grep '^[[:blank:]]' | eg # pool health UserParameter=zfs.zpool.health[*],/sbin/zpool list -H -o health $1 -UserParameter=zfs.zpool.health[*],/sbin/zpool status $1 +UserParameter=zfs.zpool.status[*],/sbin/zpool status $1 # get any fs option UserParameter=zfs.get.fsinfo[*],/sbin/zfs get -o value -Hp $2 $1 From 7fb479b443244168692448ea07eaf69f5de5034f Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 1 Aug 2021 19:42:30 +0200 Subject: [PATCH 3/3] Imported and set up the template in a zabbix 5.4 server and agent. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e3f2ae..8cbf4d9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ I have maintained and modified this template over the years and the different ve Thanks to external contributors, this template was extended and is now more complete than ever. However, if you find a metric that you need and is missing, don't hesitate to open a ticket or even better, to create a PR! -Tested Zabbix server version include 4.0, 4.4, 5.0 and 5.2 . The template shipped here is in 4.0 format to allow import to all those versions. +Tested Zabbix server version include 4.0, 4.4, 5.0, 5.2 and 5.4 . The template shipped here is in 4.0 format to allow import to all those versions. This template will give you screens and graphs for memory usage, zpool usage and performance, dataset usage, etc. It includes triggers for low disk space (customizable via Zabbix own macros), disks errors, etc.