Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_zfs_linux_py

Rating
0 votes
Favoured:
0
Current Version
2.0
Last Release Date
2020-12-12
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
9450
Files:
FileDescription
check_zfs.pycheck_zfs python script for Linux
LICENSEGPL License
README.mdREADME file
CHANGELOG.mdCHANGELOG file
check_zfs_py.teSELinux configuration file
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Check a ZFS pool for health, fragmentation, capacity, and other statuses and metrics on Linux operating systems.
check_zfs_linux is a project to create a good Linux ZFS pool checking script for Nagios. I didn't like any of the other ones I found for various reasons (no perfdata, incomplete checks, too simplistic, flat out doesn't work), and I think this one is better.

Note that, if you have the zfs and zpool binaries in a non-standard location (i.e. not in /sbin), you need to modify the paths at the top of the script accordingly.

This script will check at a bare minimum for the HEALTH flag, and report accordingly. It will also report CAPACITY and FRAGMENTATION, which you can threshold for warnings/errors. Finally, it will report SIZE, ALLOC, FREE, and also HEALTH as an integer. All of this is made available through perfdata.

You need to be able to run the zfs and zpool binaries as root. One way is to edit your visudo file, which is documented in the code.