{ "zabbix_export": { "version": "7.0", "template_groups": [ { "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", "name": "Nextcloud Installation" }, { "uuid": "7df96b18c230490a9a0a9e2307226338", "name": "Templates" } ], "templates": [ { "uuid": "47d3c2ff933947368d4bee4b1184d69b", "template": "ZFS", "name": "ZFS", "groups": [ { "name": "Nextcloud Installation" }, { "name": "Templates" } ], "items": [ { "uuid": "4ecabdcb2104460f83c2ad5f18fd98f9", "name": "ZFS on Linux version", "key": "vfs.file.contents[/sys/module/zfs/version]", "delay": "1h", "history": "30d", "value_type": "TEXT", "trends": "0", "tags": [ { "tag": "Application", "value": "ZFS" } ], "triggers": [ { "uuid": "879881de9f8b4b97b5270df192d86850", "expression": "(last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#1)<>last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#2))>0", "name": "Version of ZoL is now {ITEM.VALUE} on {HOST.NAME}", "priority": "INFO" } ] }, { "uuid": "6b5fc935fe194d30badea64eaf3f317f", "name": "ZFS ARC stat \"arc_dnode_limit\"", "key": "zfs.arcstats[arc_dnode_limit]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "0b7d673688e3429d92aa349762729f83", "name": "ZFS ARC stat \"arc_meta_limit\"", "key": "zfs.arcstats[arc_meta_limit]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "b0b5004458494182bf874545f8eb4e41", "name": "ZFS ARC stat \"arc_meta_used\"", "key": "zfs.arcstats[arc_meta_used]", "history": "30d", "units": "B", "description": "arc_meta_used = hdr_size + metadata_size + dbuf_size + dnode_size + bonus_size", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "795ab079ba13461c872ee1d5c0295704", "name": "ZFS ARC stat \"bonus_size\"", "key": "zfs.arcstats[bonus_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "34a1fb79b2b64ce08ec5b377211372d7", "name": "ZFS ARC max size", "key": "zfs.arcstats[c_max]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "d60b8e4f7a3d4bea972e7fe04c3bb5ca", "name": "ZFS ARC minimum size", "key": "zfs.arcstats[c_min]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "5e12dd98f1644f5a87cc5ded5d2e55d8", "name": "ZFS ARC stat \"data_size\"", "key": "zfs.arcstats[data_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "522a0f33c90047bab4f55b7214f51dea", "name": "ZFS ARC stat \"dbuf_size\"", "key": "zfs.arcstats[dbuf_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "a3d10ebb57984a829f780a229fc9617c", "name": "ZFS ARC stat \"dnode_size\"", "key": "zfs.arcstats[dnode_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "184eef57aa034cf8acaf6a8f0e02395b", "name": "ZFS ARC stat \"hdr_size\"", "key": "zfs.arcstats[hdr_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "cb7bcc02dfc14329a361e194145871c0", "name": "ZFS ARC stat \"hits\"", "key": "zfs.arcstats[hits]", "history": "30d", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] } ], "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "8df273b6e0904c9ab140f8f13f6ca973", "name": "ZFS ARC stat \"metadata_size\"", "key": "zfs.arcstats[metadata_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "dcd96743ed984018bff5d16105693606", "name": "ZFS ARC stat \"mfu_hits\"", "key": "zfs.arcstats[mfu_hits]", "history": "30d", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] } ], "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "1015ebe8ef6f4626ae7967bf6358f1b3", "name": "ZFS ARC stat \"mfu_size\"", "key": "zfs.arcstats[mfu_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "1298a265a6784e63a166b768e1faf67e", "name": "ZFS ARC stat \"misses\"", "key": "zfs.arcstats[misses]", "history": "30d", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] } ], "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "c85d0e9e1b464748a20148e2f2507609", "name": "ZFS ARC stat \"mru_hits\"", "key": "zfs.arcstats[mru_hits]", "history": "30d", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] } ], "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "50954c7b43d745d09990011df4d7448c", "name": "ZFS ARC stat \"mru_size\"", "key": "zfs.arcstats[mru_size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "cd225da5a02346a58dbe0c9808a628eb", "name": "ZFS ARC current size", "key": "zfs.arcstats[size]", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "8c8129f814fe47ae9c71e636599acd90", "name": "ZFS ARC Cache Hit Ratio", "type": "CALCULATED", "key": "zfs.arcstats_hit_ratio", "history": "30d", "value_type": "FLOAT", "units": "%", "params": "100*(last(//zfs.arcstats[hits])/(last(//zfs.arcstats[hits])+count(//zfs.arcstats[hits],#1,,\"0\")+last(//zfs.arcstats[misses])))", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "e644390a9c9743f2844dbc9ef8806a8f", "name": "ZFS ARC total read", "type": "CALCULATED", "key": "zfs.arcstats_total_read", "history": "30d", "units": "B", "params": "last(//zfs.arcstats[hits])+last(//zfs.arcstats[misses])", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "ebfb742fb123451c9632d12bde0957c4", "name": "ZFS parameter zfs_arc_dnode_limit_percent", "key": "zfs.get.param[zfs_arc_dnode_limit_percent]", "delay": "1h", "history": "30d", "units": "%", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] }, { "uuid": "18d8b817852848929f4e0b421cb21532", "name": "ZFS parameter zfs_arc_meta_limit_percent", "key": "zfs.get.param[zfs_arc_meta_limit_percent]", "delay": "1h", "history": "30d", "units": "%", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS ARC" } ] } ], "discovery_rules": [ { "uuid": "a82a1b7067904fecb06bcf5b88457192", "name": "Zfs Dataset discovery", "key": "zfs.fileset.discovery", "delay": "30m", "status": "DISABLED", "filter": { "evaltype": "AND", "conditions": [ { "macro": "{#FILESETNAME}", "value": "{$ZFS_FSNAME_MATCHES}", "formulaid": "A" }, { "macro": "{#FILESETNAME}", "value": "{$ZFS_FSNAME_NOTMATCHES}", "operator": "NOT_MATCHES_REGEX", "formulaid": "B" } ] }, "lifetime": "2d", "enabled_lifetime_type": "DISABLE_NEVER", "description": "Discover ZFS dataset. Dataset names must contain a \"/\" else it's a zpool.", "item_prototypes": [ { "uuid": "4d7c96bd10b44754b2c8790b90c12046", "name": "Zfs dataset {#FILESETNAME} compressratio", "key": "zfs.get.compressratio[{#FILESETNAME}]", "delay": "30m", "history": "30d", "value_type": "FLOAT", "units": "%", "preprocessing": [ { "type": "MULTIPLIER", "parameters": [ "100" ] } ], "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] }, { "uuid": "e9df401ae71e45c8a3fdbbd146cdd57b", "name": "Zfs dataset {#FILESETNAME} available", "key": "zfs.get.fsinfo[{#FILESETNAME},available]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] }, { "uuid": "ed63bb6942364281bcea80c54b6f8fcc", "name": "Zfs dataset {#FILESETNAME} referenced", "key": "zfs.get.fsinfo[{#FILESETNAME},referenced]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] }, { "uuid": "7ef4530ddf464defb2a64ce674a82c8c", "name": "Zfs dataset {#FILESETNAME} usedbychildren", "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] }, { "uuid": "3c7f982147be49629c78aa67a1d8d56e", "name": "Zfs dataset {#FILESETNAME} usedbydataset", "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]", "delay": "1h", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] }, { "uuid": "cc0e02c58b28443eb78eeacc81095966", "name": "Zfs dataset {#FILESETNAME} usedbysnapshots", "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] }, { "uuid": "a54feffafdb34ba08f1474ab4710088d", "name": "Zfs dataset {#FILESETNAME} used", "key": "zfs.get.fsinfo[{#FILESETNAME},used]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS dataset" } ] } ], "trigger_prototypes": [ { "uuid": "cc0b0756d2fe42779b62adf63e38681d", "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_AVERAGE_ALERT}/100)", "name": "More than {$ZFS_AVERAGE_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", "priority": "AVERAGE", "dependencies": [ { "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)" } ] }, { "uuid": "8bfb157ac42845c0b340e28ae510833c", "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)", "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", "priority": "DISASTER" }, { "uuid": "9b592a2cba084bec9ceb4f82367e758b", "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)", "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", "priority": "HIGH", "dependencies": [ { "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)" } ] } ], "graph_prototypes": [ { "uuid": "5213684719404718b8956d6faf0e6b71", "name": "ZFS dataset {#FILESETNAME} usage", "type": "STACKED", "ymin_type_1": "FIXED", "graph_items": [ { "sortorder": "1", "color": "3333FF", "item": { "host": "ZFS", "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]" } }, { "sortorder": "2", "color": "FF33FF", "item": { "host": "ZFS", "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]" } }, { "sortorder": "3", "color": "FF3333", "item": { "host": "ZFS", "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]" } }, { "sortorder": "4", "color": "33FF33", "item": { "host": "ZFS", "key": "zfs.get.fsinfo[{#FILESETNAME},available]" } } ] } ] }, { "uuid": "08039e570bd7417294d043f4f7bf960f", "name": "Zfs Pool discovery", "key": "zfs.pool.discovery", "delay": "1h", "lifetime": "3d", "enabled_lifetime_type": "DISABLE_NEVER", "item_prototypes": [ { "uuid": "9f889e9529934fdfbf47a29de32468f0", "name": "Zpool {#POOLNAME} available", "key": "zfs.get.fsinfo[{#POOLNAME},available]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "1993c04b00bc428bbdf43c909967afd2", "name": "Zpool {#POOLNAME} used", "key": "zfs.get.fsinfo[{#POOLNAME},used]", "delay": "5m", "history": "30d", "units": "B", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "472e21c79759476984cbf4ce9f12580a", "name": "Zpool {#POOLNAME} Health", "key": "zfs.zpool.health[{#POOLNAME}]", "delay": "5m", "history": "30d", "value_type": "TEXT", "trends": "0", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ], "trigger_prototypes": [ { "uuid": "4855fe0ed61b444daad73aa6090b46af", "expression": "find(/ZFS/zfs.zpool.health[{#POOLNAME}],,\"like\",\"ONLINE\")=0", "name": "Zpool {#POOLNAME} is {ITEM.VALUE} on {HOST.NAME}", "priority": "HIGH" } ] }, { "uuid": "3207e6ffd0fa40c4a1d6e607e4e12375", "name": "Zpool {#POOLNAME} read throughput", "type": "DEPENDENT", "key": "zfs.zpool.iostat.nread[{#POOLNAME}]", "delay": "0", "history": "30d", "value_type": "FLOAT", "units": "Bps", "preprocessing": [ { "type": "JAVASCRIPT", "parameters": [ "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[5];" ] } ], "master_item": { "key": "zfs.zpool.iostat[{#POOLNAME}]" }, "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "78b418605f9b45b29bbd33b93a6b2e82", "name": "Zpool {#POOLNAME} write throughput", "type": "DEPENDENT", "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]", "delay": "0", "history": "30d", "value_type": "FLOAT", "units": "Bps", "preprocessing": [ { "type": "JAVASCRIPT", "parameters": [ "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[6];" ] } ], "master_item": { "key": "zfs.zpool.iostat[{#POOLNAME}]" }, "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "6b35bf06bf4542318a7999ac4d7952f7", "name": "Zpool {#POOLNAME} IOPS: reads", "type": "DEPENDENT", "key": "zfs.zpool.iostat.reads[{#POOLNAME}]", "delay": "0", "history": "30d", "value_type": "FLOAT", "units": "iops", "preprocessing": [ { "type": "JAVASCRIPT", "parameters": [ "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[3];" ] } ], "master_item": { "key": "zfs.zpool.iostat[{#POOLNAME}]" }, "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "b99d5ab922324536bc2e013ac1fca306", "name": "Zpool {#POOLNAME} IOPS: writes", "type": "DEPENDENT", "key": "zfs.zpool.iostat.writes[{#POOLNAME}]", "delay": "0", "history": "30d", "value_type": "FLOAT", "units": "iops", "preprocessing": [ { "type": "JAVASCRIPT", "parameters": [ "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[4];" ] } ], "master_item": { "key": "zfs.zpool.iostat[{#POOLNAME}]" }, "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "7142e6f1eceb4dc29e3a03d494230564", "name": "Zpool {#POOLNAME}: Get iostats", "key": "zfs.zpool.iostat[{#POOLNAME}]", "history": "0", "value_type": "TEXT", "trends": "0", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ] }, { "uuid": "867075d6eb1743069be868007472192b", "name": "Zpool {#POOLNAME} scrub status", "key": "zfs.zpool.scrub[{#POOLNAME}]", "delay": "5m", "history": "30d", "description": "Detect if the pool is currently scrubbing itself.\n\nThis is not a bad thing itself, but it slows down the entire pool and should be terminated when on production server during business hours if it causes a noticeable slowdown.", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS zpool" } ], "trigger_prototypes": [ { "uuid": "792be07c555c4ae6a9819d69d332357b", "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],12h)=0", "name": "Zpool {#POOLNAME} is scrubbing for more than 12h on {HOST.NAME}", "priority": "AVERAGE", "dependencies": [ { "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0" } ] }, { "uuid": "04cac9633f164227b1f9b2fe26923609", "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0", "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", "priority": "HIGH" } ] } ], "trigger_prototypes": [ { "uuid": "82fce07b30114c7e8645689317e2c1b4", "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_AVERAGE_ALERT}/100)", "name": "More than {$ZPOOL_AVERAGE_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", "priority": "AVERAGE", "dependencies": [ { "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)" } ] }, { "uuid": "ab56a2a8eb3d4b4294707e2a8aa94e22", "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)", "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", "priority": "DISASTER" }, { "uuid": "c9c22e6617af4ad09970d2988c4a7fe7", "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)", "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", "priority": "HIGH", "dependencies": [ { "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)" } ] } ], "graph_prototypes": [ { "uuid": "926abae3e18144f0899711fdfd16e808", "name": "ZFS zpool {#POOLNAME} IOPS", "ymin_type_1": "FIXED", "graph_items": [ { "sortorder": "1", "color": "5C6BC0", "item": { "host": "ZFS", "key": "zfs.zpool.iostat.reads[{#POOLNAME}]" } }, { "sortorder": "2", "color": "EF5350", "item": { "host": "ZFS", "key": "zfs.zpool.iostat.writes[{#POOLNAME}]" } } ] }, { "uuid": "63ae2d7acd4d4d15b4c5e7a5a90a063a", "name": "ZFS zpool {#POOLNAME} space usage", "type": "STACKED", "graph_items": [ { "sortorder": "1", "color": "00EE00", "item": { "host": "ZFS", "key": "zfs.get.fsinfo[{#POOLNAME},available]" } }, { "sortorder": "2", "color": "EE0000", "item": { "host": "ZFS", "key": "zfs.get.fsinfo[{#POOLNAME},used]" } } ] }, { "uuid": "aa35d164bacd45c5983fd2856781da88", "name": "ZFS zpool {#POOLNAME} throughput", "ymin_type_1": "FIXED", "graph_items": [ { "sortorder": "1", "color": "5C6BC0", "item": { "host": "ZFS", "key": "zfs.zpool.iostat.nread[{#POOLNAME}]" } }, { "sortorder": "2", "drawtype": "BOLD_LINE", "color": "EF5350", "item": { "host": "ZFS", "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]" } } ] } ] }, { "uuid": "6c96e092f08f4b98af9a377782180689", "name": "Zfs vdev discovery", "key": "zfs.vdev.discovery", "delay": "1h", "lifetime": "3d", "enabled_lifetime_type": "DISABLE_NEVER", "item_prototypes": [ { "uuid": "9f63161726774a28905c87aac92cf1e9", "name": "vdev {#VDEV}: CHECKSUM error counter", "key": "zfs.vdev.error_counter.cksum[{#VDEV}]", "delay": "5m", "history": "30d", "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS vdev" } ] }, { "uuid": "48a02eb060fd4b73bdde08a2795c4717", "name": "vdev {#VDEV}: READ error counter", "key": "zfs.vdev.error_counter.read[{#VDEV}]", "delay": "5m", "history": "30d", "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS vdev" } ] }, { "uuid": "15953ba38fde4b8c8681955a27d9204a", "name": "vdev {#VDEV}: WRITE error counter", "key": "zfs.vdev.error_counter.write[{#VDEV}]", "delay": "5m", "history": "30d", "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS vdev" } ] }, { "uuid": "3e64a59d2a154a89a3bc43483942302d", "name": "vdev {#VDEV}: total number of errors", "type": "CALCULATED", "key": "zfs.vdev.error_total[{#VDEV}]", "delay": "5m", "history": "30d", "params": "last(//zfs.vdev.error_counter.cksum[{#VDEV}])+last(//zfs.vdev.error_counter.read[{#VDEV}])+last(//zfs.vdev.error_counter.write[{#VDEV}])", "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", "tags": [ { "tag": "Application", "value": "ZFS" }, { "tag": "Application", "value": "ZFS vdev" } ], "trigger_prototypes": [ { "uuid": "44f7667c275d4a04891bc4f1d00e668b", "expression": "last(/ZFS/zfs.vdev.error_total[{#VDEV}])>0", "name": "vdev {#VDEV} has encountered {ITEM.VALUE} errors on {HOST.NAME}", "priority": "HIGH", "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.\n\nYou may also run a zpool scrub to check if some other undetected errors are present on this vdev." } ] } ], "graph_prototypes": [ { "uuid": "ab78dba991ba4311a04740fc69b30381", "name": "ZFS vdev {#VDEV} errors", "ymin_type_1": "FIXED", "graph_items": [ { "color": "CC00CC", "item": { "host": "ZFS", "key": "zfs.vdev.error_counter.cksum[{#VDEV}]" } }, { "sortorder": "1", "color": "F63100", "item": { "host": "ZFS", "key": "zfs.vdev.error_counter.read[{#VDEV}]" } }, { "sortorder": "2", "color": "BBBB00", "item": { "host": "ZFS", "key": "zfs.vdev.error_counter.write[{#VDEV}]" } } ] } ] } ], "macros": [ { "macro": "{$ZFS_ARC_META_ALERT}", "value": "90" }, { "macro": "{$ZFS_AVERAGE_ALERT}", "value": "90" }, { "macro": "{$ZFS_DISASTER_ALERT}", "value": "99" }, { "macro": "{$ZFS_FSNAME_MATCHES}", "value": "/", "description": "Use this to determine the datasets to autodiscover defaults to all datasets with a '/' in the name" }, { "macro": "{$ZFS_FSNAME_NOTMATCHES}", "value": "([a-z-0-9]{64}$|[a-z-0-9]{64}-init$)", "description": "Use this to determine the datasets to not autodiscover. Ignore docker created datasets by default" }, { "macro": "{$ZFS_HIGH_ALERT}", "value": "95" }, { "macro": "{$ZPOOL_AVERAGE_ALERT}", "value": "85" }, { "macro": "{$ZPOOL_DISASTER_ALERT}", "value": "99" }, { "macro": "{$ZPOOL_HIGH_ALERT}", "value": "90" } ], "dashboards": [ { "uuid": "180e8c0dc05946e4b8552e3a01df347f", "name": "ZFS ARC", "pages": [ { "widgets": [ { "type": "graph", "width": "72", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS ARC memory usage" } }, { "type": "STRING", "name": "reference", "value": "AAAQC" }, { "type": "INTEGER", "name": "source_type", "value": "0" } ] }, { "type": "graph", "y": "5", "width": "72", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS ARC Cache Hit Ratio" } }, { "type": "STRING", "name": "reference", "value": "AAAQD" }, { "type": "INTEGER", "name": "source_type", "value": "0" } ] }, { "type": "graph", "y": "10", "width": "72", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS ARC breakdown" } }, { "type": "STRING", "name": "reference", "value": "AAAQE" }, { "type": "INTEGER", "name": "source_type", "value": "0" } ] }, { "type": "graph", "y": "15", "width": "72", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS ARC arc_meta_used breakdown" } }, { "type": "STRING", "name": "reference", "value": "AAAQF" }, { "type": "INTEGER", "name": "source_type", "value": "0" } ] } ] } ] }, { "uuid": "442dda5c36c04fc78c3a73eacf26bc7f", "name": "ZFS zpools", "pages": [ { "widgets": [ { "type": "graphprototype", "width": "24", "height": "5", "fields": [ { "type": "INTEGER", "name": "columns", "value": "1" }, { "type": "GRAPH_PROTOTYPE", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS zpool {#POOLNAME} IOPS" } }, { "type": "STRING", "name": "reference", "value": "AAAQG" } ] }, { "type": "graphprototype", "x": "24", "width": "24", "height": "5", "fields": [ { "type": "INTEGER", "name": "columns", "value": "1" }, { "type": "GRAPH_PROTOTYPE", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS zpool {#POOLNAME} throughput" } }, { "type": "STRING", "name": "reference", "value": "AAAQH" } ] }, { "type": "graphprototype", "x": "48", "width": "24", "height": "5", "fields": [ { "type": "INTEGER", "name": "columns", "value": "1" }, { "type": "GRAPH_PROTOTYPE", "name": "graphid", "value": { "host": "ZFS", "name": "ZFS zpool {#POOLNAME} space usage" } }, { "type": "STRING", "name": "reference", "value": "AAAQI" } ] } ] } ] } ], "valuemaps": [ { "uuid": "d1d7b0898d06481dbcec8b02d915fb1c", "name": "ZFS zpool scrub status", "mappings": [ { "value": "0", "newvalue": "Scrub in progress" }, { "value": "1", "newvalue": "No scrub in progress" } ] } ] } ], "triggers": [ { "uuid": "1daac44b853b4b6da767c9c3af96b774", "expression": "last(/ZFS/zfs.arcstats[dnode_size])>(last(/ZFS/zfs.arcstats[arc_dnode_limit])*0.9)", "name": "ZFS ARC dnode size > 90% dnode max size on {HOST.NAME}", "priority": "HIGH" }, { "uuid": "69c18b7ceb3d4da2bda0e05f9a12453f", "expression": "last(/ZFS/zfs.arcstats[arc_meta_used])>(last(/ZFS/zfs.arcstats[arc_meta_limit])*0.01*{$ZFS_ARC_META_ALERT})", "name": "ZFS ARC meta size > {$ZFS_ARC_META_ALERT}% meta max size on {HOST.NAME}", "priority": "HIGH" } ], "graphs": [ { "uuid": "1510111dc5414e6d80a5230ce6a81f1d", "name": "ZFS ARC arc_meta_used breakdown", "type": "STACKED", "ymin_type_1": "FIXED", "graph_items": [ { "color": "3333FF", "item": { "host": "ZFS", "key": "zfs.arcstats[metadata_size]" } }, { "sortorder": "1", "color": "00EE00", "item": { "host": "ZFS", "key": "zfs.arcstats[dnode_size]" } }, { "sortorder": "2", "color": "EE0000", "item": { "host": "ZFS", "key": "zfs.arcstats[hdr_size]" } }, { "sortorder": "3", "color": "EEEE00", "item": { "host": "ZFS", "key": "zfs.arcstats[dbuf_size]" } }, { "sortorder": "4", "color": "EE00EE", "item": { "host": "ZFS", "key": "zfs.arcstats[bonus_size]" } } ] }, { "uuid": "203eeeaadc9444ccbbc31cf043e836cb", "name": "ZFS ARC breakdown", "type": "STACKED", "ymin_type_1": "FIXED", "graph_items": [ { "color": "3333FF", "item": { "host": "ZFS", "key": "zfs.arcstats[data_size]" } }, { "sortorder": "1", "color": "00AA00", "item": { "host": "ZFS", "key": "zfs.arcstats[metadata_size]" } }, { "sortorder": "2", "color": "EE0000", "item": { "host": "ZFS", "key": "zfs.arcstats[dnode_size]" } }, { "sortorder": "3", "color": "CCCC00", "item": { "host": "ZFS", "key": "zfs.arcstats[hdr_size]" } }, { "sortorder": "4", "color": "A54F10", "item": { "host": "ZFS", "key": "zfs.arcstats[dbuf_size]" } }, { "sortorder": "5", "color": "888888", "item": { "host": "ZFS", "key": "zfs.arcstats[bonus_size]" } } ] }, { "uuid": "4c493303be4a45a7a96d3ef7246843c0", "name": "ZFS ARC Cache Hit Ratio", "ymin_type_1": "FIXED", "ymax_type_1": "FIXED", "graph_items": [ { "color": "00CC00", "item": { "host": "ZFS", "key": "zfs.arcstats_hit_ratio" } } ] }, { "uuid": "b2fce9515a7d4218a5e9015f212c2a60", "name": "ZFS ARC memory usage", "ymin_type_1": "FIXED", "ymax_type_1": "ITEM", "ymax_item_1": { "host": "ZFS", "key": "zfs.arcstats[c_max]" }, "graph_items": [ { "drawtype": "GRADIENT_LINE", "color": "0000EE", "item": { "host": "ZFS", "key": "zfs.arcstats[size]" } }, { "sortorder": "1", "drawtype": "BOLD_LINE", "color": "DD0000", "item": { "host": "ZFS", "key": "zfs.arcstats[c_max]" } }, { "sortorder": "2", "color": "00BB00", "item": { "host": "ZFS", "key": "zfs.arcstats[c_min]" } } ] } ] } }