no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | gmirror [2012/10/16 22:26] – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======= monitor gmirror from NRPE / cron for FreeBSD ======= | ||
+ | I wrote this little 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. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | '' | ||
+ | |||
+ | 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 ===== | ||
+ | '' | ||
+ | |||
+ | Failed/ | ||
+ | |||
+ | ==== Output Examples ==== | ||
+ | |||
+ | ^ output ^ 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' | ||
+ | | 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. '' | ||
+ | |||
+ | ===== Compability ===== | ||
+ | The script should work on any < | ||
+ | |||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | |||
+ | ===== Download ===== | ||
+ | ==== Latest version==== | ||
+ | Latest version 1.1 | ||
+ | |||
+ | {{files: | ||
+ | |||
+ | ==== Old version ==== | ||
+ | {{files: | ||
+ | ===== Changelog ===== | ||
+ | === 1.1 === | ||
+ | o Can now email an address of choice, just use email address(es) as arguments to shellscript | ||
+ | o check if gmirror command exists on system before running script | ||
+ | === 1.0.1 === | ||
+ | o small fixes to comments | ||
+ | | ||
+ | === 1.0 === | ||
+ | o Initial public release | ||
+ | Based on my check_gmirror.sh script. | ||
+ | NOTE: This was made on request from a friend, has not been thorougly tested, your mileage may vary. |