2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Added support for md10 and above

This commit is contained in:
Nagy Elemer Karoly 2011-08-18 16:16:07 +02:00 committed by Steve Schnepp
parent 0f972e1fec
commit 97ff9a5221

View File

@ -38,7 +38,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
# Should look like "active raid1 sda1[0] sdc1[2] sdb1[1]"
# Interestingly, swap is presented as "active (auto-read-only)"
while ($text =~ /(md\d)\s+:\s+active\s+(\(auto-read-only\)\s+|)(\w+)\s+(.*)\n.*\[(\d+)\/(\d+)]\s+\[(\w+)]/ ) {
while ($text =~ /(md\d+)\s+:\s+active\s+(\(auto-read-only\)\s+|)(\w+)\s+(.*)\n.*\[(\d+)\/(\d+)]\s+\[(\w+)]/ ) {
my($dev,$dummy,$type,$members,$nmem,$nact,$status) = ($1,$2,$3,$4,$5,$6,$7);
# print "$text\nitem: $dev $type ($members) status=$status \n";
if ( $ARGV[0] and $ARGV[0] eq "config" ) {