Plugin report an unexpected parse error when executing.
Tried with 4.0.9 (from Debian 10) and 4.0.10 (from this git).
Output of check_raid -d:
# perl ./check_raid.pl -d
check_raid 4.0.10
Visit <https://github.com/glensc/nagios-plugin-check_raid#reporting-bugs> how to report bugs
Please include output of **ALL** commands in bugreport
DEBUG EXEC: /sbin/dmsetup status --noflush at ./check_raid.pl line 503.
DEBUG EXEC: /proc/mdstat at ./check_raid.pl line 503.
Unexpected parse at ./check_raid.pl line 3578, <$fh> line 2.
After giving a look at the code, I suspect that's because disk sdc3 have two flags: W (write-mostly) and R (recovery) or S (spare) but I'm not good in perl.
Plugin report an unexpected parse error when executing.
Tried with 4.0.9 (from Debian 10) and 4.0.10 (from this git).
Output of
check_raid -d
:Output of
cat /proc/mdstat
:After giving a look at the code, I suspect that's because disk sdc3 have two flags: W (write-mostly) and R (recovery) or S (spare) but I'm not good in perl.