check-script for nrpe/nagios to get the status of various gmirror volumes in a box, and output the failed volumes if any such exist.


 $path/ [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.


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.


Value Description
OK The device is reported as ok by the smart array controller
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
starting The geom device is currently starting, you shouldn't see this and will return an unknown code to nagios/icinga