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:
parent
0f972e1fec
commit
97ff9a5221
@ -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" ) {
|
||||
|
Loading…
Reference in New Issue
Block a user