Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
output status of zpool (zfs) volumes. Uses tools from FreeBSD base system.
Current Version
Last Release Date
February 4, 2010
Owner
Nagios Exchange
I wrote this simple check-script for nrpe/nagios to get the status of various zpool volumes in a box, and output the failed volumes if any such exist.
SYNTAX:
$path/check_zpool.sh [email] [email]
If no arguments are specified, the script will assume its run for NRPE. If one or more email addresses are specified, the script will send an email in case an array reports an error.
OUTPUT:
tank: DEGRADED / data: rebuilding / system: ok
Failed/rebuilding volumes will always be first in the output string, to help diagnose the problem when recieving the output via pager/sms.
Various outputs explained: ok The device is reported as ok by zpool DEGRADED The RAID volume is degraded, it's still working but without the safety of RAID, and in some cases with severe performance loss. rebuilding The RAID is rebuilding, will return to OK when done unknown state Volume is in an unknown state. Please report this to me (soren at klintrup.dk) so I can update the script include the following output: zpool status zpool list
TESTED:
Tested on FreeBSD 8.0 (amd64)
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!