Skip to content

Includes items such as capacity, fragmentation, deduplication, and pool health, along with JSON-based discovery rules. Ideal for efficient and automated ZFS monitoring.

Notifications You must be signed in to change notification settings

Garfieldttt/zabbix-ZFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Requirements

  • Zabbix Server version 7.0 or higher

Notice

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.

Setup

ZFS ZPool Monitoring Setup

Step 1: Create the JSON Log File

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.json

Step 2: Clone the Git Repository

cd /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.sh

Step 3: Configure the Cron Job

crontab -e

Add the following line to execute the script every 5 minutes:

*/5 * * * * /usr/local/sbin/zfs-check.sh

Step 5: Import the Zabbix Template

About

Includes items such as capacity, fragmentation, deduplication, and pool health, along with JSON-based discovery rules. Ideal for efficient and automated ZFS monitoring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages