From e7fc3d2749dc09d38d395559e2710f7bf3842751 Mon Sep 17 00:00:00 2001 From: Graham Pearce Date: Fri, 29 Jul 2022 13:03:32 +0100 Subject: [PATCH] update_user_params_template --- template/zol_template.xml | 4294 +++++++------------------- userparameters/ZoL_without_sudo.conf | 5 +- 2 files changed, 1039 insertions(+), 3260 deletions(-) diff --git a/template/zol_template.xml b/template/zol_template.xml index 4ccfb26..4e37e06 100644 --- a/template/zol_template.xml +++ b/template/zol_template.xml @@ -1,2054 +1,680 @@ - 4.0 - 2021-01-04T21:27:59Z - - + 6.2 + 2022-07-27T12:45:56Z + + + 7df96b18c230490a9a0a9e2307226338 Templates - - + + - {ZFS on Linux:vfs.file.contents[/sys/module/zfs/version].diff(0)}>0 - 0 - - Version of OpenZFS is now {ITEM.VALUE} on {HOST.NAME} - 0 - - - 0 - 1 - - 0 - 0 - - - - - {ZFS on Linux:zfs.arcstats[dnode_size].last()}>({ZFS on Linux:zfs.arcstats[arc_dnode_limit].last()}*0.9) - 0 - + 1daac44b853b4b6da767c9c3af96b774 + last(/ZFS on Linux/zfs.arcstats[dnode_size])>(last(/ZFS on Linux/zfs.arcstats[arc_dnode_limit])*0.9) ZFS ARC dnode size > 90% dnode max size on {HOST.NAME} - 0 - - - 0 - 4 - - 0 - 0 - - + HIGH - {ZFS on Linux:zfs.arcstats[arc_meta_used].last()}>({ZFS on Linux:zfs.arcstats[arc_meta_limit].last()}*0.01*{$ZFS_ARC_META_ALERT}) - 0 - + 69c18b7ceb3d4da2bda0e05f9a12453f + last(/ZFS on Linux/zfs.arcstats[arc_meta_used])>(last(/ZFS on Linux/zfs.arcstats[arc_meta_limit])*0.01*{$ZFS_ARC_META_ALERT}) ZFS ARC meta size > {$ZFS_ARC_META_ALERT}% meta max size on {HOST.NAME} - 0 - - - 0 - 4 - - 0 - 0 - - + HIGH + 1510111dc5414e6d80a5230ce6a81f1d ZFS ARC arc_meta_used breakdown - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 1 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 + STACKED + FIXED - 0 - 0 3333FF - 0 - 2 - 0 ZFS on Linux zfs.arcstats[metadata_size] @@ -3728,11 +1611,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 1 - 0 00EE00 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[dnode_size] @@ -3740,11 +1619,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 2 - 0 EE0000 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[hdr_size] @@ -3752,11 +1627,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 3 - 0 EEEE00 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[dbuf_size] @@ -3764,11 +1635,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 4 - 0 EE00EE - 0 - 2 - 0 ZFS on Linux zfs.arcstats[bonus_size] @@ -3777,30 +1644,13 @@ You may also run a zpool scrub to check if some other undetected errors are pres + 203eeeaadc9444ccbbc31cf043e836cb ZFS ARC breakdown - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 1 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 + STACKED + FIXED - 0 - 0 3333FF - 0 - 2 - 0 ZFS on Linux zfs.arcstats[data_size] @@ -3808,11 +1658,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 1 - 0 00AA00 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[metadata_size] @@ -3820,11 +1666,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 2 - 0 EE0000 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[dnode_size] @@ -3832,11 +1674,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 3 - 0 CCCC00 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[hdr_size] @@ -3844,11 +1682,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 4 - 0 A54F10 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[dbuf_size] @@ -3856,11 +1690,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 5 - 0 888888 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[bonus_size] @@ -3869,30 +1699,13 @@ You may also run a zpool scrub to check if some other undetected errors are pres + 4c493303be4a45a7a96d3ef7246843c0 ZFS ARC Cache Hit Ratio - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 1 - 0 - 0 + FIXED + FIXED - 0 - 0 00CC00 - 0 - 2 - 0 ZFS on Linux zfs.arcstats_hit_ratio @@ -3901,33 +1714,18 @@ You may also run a zpool scrub to check if some other undetected errors are pres + b2fce9515a7d4218a5e9015f212c2a60 ZFS ARC memory usage - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 2 - 0 + FIXED + ITEM ZFS on Linux zfs.arcstats[c_max] - 0 - 5 + GRADIENT_LINE 0000EE - 0 - 2 - 0 ZFS on Linux zfs.arcstats[size] @@ -3935,11 +1733,8 @@ You may also run a zpool scrub to check if some other undetected errors are pres 1 - 2 + BOLD_LINE DD0000 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[c_max] @@ -3947,11 +1742,7 @@ You may also run a zpool scrub to check if some other undetected errors are pres 2 - 0 00BB00 - 0 - 2 - 0 ZFS on Linux zfs.arcstats[c_min] @@ -3960,19 +1751,4 @@ You may also run a zpool scrub to check if some other undetected errors are pres - - - ZFS zpool scrub status - - - 0 - Scrub in progress - - - 1 - No scrub in progress - - - - diff --git a/userparameters/ZoL_without_sudo.conf b/userparameters/ZoL_without_sudo.conf index 5611789..f418f64 100644 --- a/userparameters/ZoL_without_sudo.conf +++ b/userparameters/ZoL_without_sudo.conf @@ -12,6 +12,9 @@ UserParameter=zfs.vdev.discovery,/sbin/zpool list -Hv | grep '^[[:blank:]]' | eg # pool health UserParameter=zfs.zpool.health[*],/sbin/zpool list -H -o health $1 +# pool fragmentation +UserParameter=zfs.zpool.fragmentation[*],/sbin/zpool list -H -o fragmentation $1 |sed "s/%//" + # get any fs option UserParameter=zfs.get.fsinfo[*],/sbin/zfs get -o value -Hp $2 $1 @@ -38,4 +41,4 @@ UserParameter=zfs.vdev.error_counter.read[*],/sbin/zpool status | grep "$1" | aw # vdev WRITE error counter UserParameter=zfs.vdev.error_counter.write[*],/sbin/zpool status | grep "$1" | awk '{ print $$4 }' | numfmt --from=si # vdev CHECKSUM error counter -UserParameter=zfs.vdev.error_counter.cksum[*],/sbin/zpool status | grep "$1" | awk '{ print $$5 }' | numfmt --from=si +UserParameter=zfs.vdev.error_counter.cksum[*],/sbin/zpool status | grep "$1" | awk '{ print $$5 }' | numfmt --from=si \ No newline at end of file