Closed chschenk closed 5 years ago
can you add some tests to the new code paths?
I have added some test data and some tests. What do you think on this PR? Any chance to get this included?
looks like my previous comment was never posted
the tests pass, so looks good.
ideally i'd not make the methods even longer, but use subroutines. but the cleanup can be done later as well.
This pull request adds a plugin option to check if a certain amount of spares in an md array are present:
Example: check_raid --plugin-option=mdstat_spare_count="md126:3,md127:2"
checks that md126 has at least 3 spares and that md127 has at least 2 spares