Added raid mode#62
Conversation
Added check for raid status
Added raid mode
|
Thanks for adding the raid mode! A few issues I noticed while reading through the diff: 1. Severity downgrade in the loop
2. Status
|
Adds a `raid` mode that surfaces Synology raid status (OID 1.3.6.1.4.1.6574.3.1.1.x) for every storage pool: Normal → OK, intermediate states (Repairing/Migrating/Expanding/.../Canceling) → WARNING, Degrade and Crashed → CRITICAL, anything else → UNKNOWN. The previous severity is preserved across iterations so a WARNING pool can never downgrade a CRITICAL one. Status "2" (Repairing) is included in the WARNING set. README updated with the new mode. This is an alternative take on wernerfred#62 incorporating review feedback from issuecomment-4502847249.
Fix RAID state escalation and document/test status mapping
|
Fixex RAID status handling so severity only escalates across pools. Changes:
|
|
Thanks for iterating on this — the
|
The current script will not show errors when raid status is in bad state, only when the drives are bad. This pull request will add raid checks. Here are a few examples of the script running: