This is much cleaner now, and should be a bit faster as well because of removed extra exec_command calls. RAID sync perf data was added.
In addition, behavior has changed slightly. If an array is degraded but currently rebuilding, it returns WARNING. If it's degraded but not rebuilding, it returns CRITICAL. Previously, it would only return CRITICAL in both of these cases.
This is much cleaner now, and should be a bit faster as well because of removed extra exec_command calls. RAID sync perf data was added.
In addition, behavior has changed slightly. If an array is degraded but currently rebuilding, it returns WARNING. If it's degraded but not rebuilding, it returns CRITICAL. Previously, it would only return CRITICAL in both of these cases.