- Zabbix Server version 7.0 or higher
This template is designed for use with the Zabbix Agent (active).
| Item | Description |
|---|---|
| allocated | Used storage space in the ZPool. |
| ashift | Block size adjustment for physical sectors. |
| autotrim | Automatic trimming of unused storage. |
| capacity | Total utilization of the ZPool in percentage. |
| dedupratio | Deduplication ratio. |
| fragmentation | Fragmentation level in the ZPool. |
| free | Available free storage space. |
| guid | Globally unique identifier of the ZPool. |
| health | Status of the ZPool (e.g., "ONLINE", "DEGRADED"). |
| leaked | Memory leaks in the pool (if any). |
| load_guid | Load state identifier of the ZPool. |
| multihost | Multi-host protection status. |
| readonly | Read-only status of the ZPool. |
| size | Total capacity of the ZPool. |
Create the log file to store ZPool status in JSON format and set the appropriate permissions:
touch /var/log/zpool_status.json
chmod 744 /var/log/zpool_status.jsoncd /tmp/ && git clone https://github.com/Garfieldttt/zabbix-ZFS && cp /tmp/zabbix-ZFS/7.0/zfs-check.sh /usr/local/sbin/ && chmod +x /usr/local/sbin/zfs-check.shcrontab -e*/5 * * * * /usr/local/sbin/zfs-check.sh