blind-oracle / zabbix-zfs

Zabbix template & script to monitor ZFS on Linux
Mozilla Public License 2.0
30 stars 7 forks source link
linux monitor openzfs template zabbix zfs

zabbix-zfs

Zabbix template & script to monitor ZFS on Linux.

Single Python script that emits all information needed for discovery & data gathering in a single JSON. All items are defined as Dependent and extract relevant data using JSONPath queries.

Click to expand JSON example ```json { "vdevs": { "/dev/sda1": { "name": "/dev/sda1", "size": 0, "alloc": 0, "free": 0, "frag": 0, "usage": 0, "online": 1, "errors": { "read": 0, "write": 0, "cksum": 0 } } }, "pools": { "pool1": { "name": "pool1", "size": 11957188952064, "alloc": 4227267283968, "free": 7729921668096, "frag": 5, "usage": 35, "dedup": 1.0, "scrub": 0, "resilver": 0, "online": 1 } }, "datasets": { "pool1": { "name": "pool1", "avail": 5502826989670, "used": 3162194032538, "compress": 1.05, "referenced": 38300 } }, "arc": { "l1": { "size": 5398891600, "hitrate": 91.56803867935483, "free": 458843264 }, "l2": { "usage": 142278352384, "usage_actual": 137375770112, "hitrate": 94.00152633863829, "bytes_read": 241515501568, "bytes_written": 25932241920, "io_error": 0, "cksum_bad": 0 } }, "slab": 291337024 } ```

Features

Macros

Requirements

Installation