Linux

check_zfs_linux_py

Description:

Check a ZFS pool for health, fragmentation, capacity, and other statuses and metrics on Linux operating systems.

Current Version

2.0

Last Release Date

2020-12-12

Compatible With

  • Nagios 3.x
  • Nagios 4.x

Owner

License

GPL


Project Files
Project Notes
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.
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
9,346