mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Update md_iostat_ for '--write-mostly' drives
Doesn't work with '--write-mostly' drives like sde1 in : md94 : active raid1 sde1[1](W)(S) sdd1[2] I assume to remove everything behind the opening bracket
This commit is contained in:
parent
863d326b7a
commit
ba6595ff2b
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ while (<MD>) {
|
||||||
|
|
||||||
# Remove unwanted things like raid device number, partition number
|
# Remove unwanted things like raid device number, partition number
|
||||||
# and sort nicely.
|
# and sort nicely.
|
||||||
@devs = sort by_dev map { s/\d*\[.*\]$//; $_; } @devs;
|
@devs = sort by_dev map { s/\d*\[.*$//; $_; } @devs;
|
||||||
|
|
||||||
# Insert the raid device into the mix.
|
# Insert the raid device into the mix.
|
||||||
unshift(@devs,$md);
|
unshift(@devs,$md);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue