From 4043bda0ef41e97b7d6cf9064a8de93712f3d99d Mon Sep 17 00:00:00 2001 From: Jonny007-MKD Date: Sun, 9 Feb 2020 21:02:41 +0100 Subject: [PATCH] Added README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dfd7046 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# check_mdstat.sh +This script reads from `/proc/mdstat` to get the status of a RAID devices. + +Other than [check_md_raid](https://exchange.icinga.com/exchange/check_md_raid) and [check_md_raid updated](https://exchange.icinga.com/jasem/check_md_raid updated/) not all RAIDs are checked simulataneously, but only one specific. This gives the possibility to query some "performance" data and later add more granular checks. + +## Arguments +* --raid | -r: Name of the RAID, e.g. `md0` +* --input | -i: Input file. Defaults to /proc/mdstat +* --debug | -d: More debugging output, cannot be used with icinga2 + +## Results +* CRITICAL: if any device failed +* CRITICAL: if the state of the RAID is not active/started +* WARNING: when recoverying/resyncing +* CRITICAL: if the number of active devices is smaller than the number of active devices. + +## Known issues +Probably I did not get things right with spare devices. \ No newline at end of file