mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-20 07:26:08 +01:00
Merge pull request #275 from thomasf/mdstat-tabs
Fix mdstat tabs parsing
This commit is contained in:
commit
b55019f10b
@ -16,8 +16,8 @@ md6 : active raid1 sdb2[2] sda2[0]
|
|||||||
[=>...................] recovery = 8.5% (16775552/195310144) finish=17.0min speed=259783K/sec
|
[=>...................] recovery = 8.5% (16775552/195310144) finish=17.0min speed=259783K/sec
|
||||||
|
|
||||||
md8 : active raid1 sdb1[1] sda1[0]
|
md8 : active raid1 sdb1[1] sda1[0]
|
||||||
195310144 blocks [2/2] [UU]
|
195310144 blocks [2/2] [UU]
|
||||||
[=>...................] resync = 8.5% (16775552/195310144) finish=17.0min speed=259783K/sec
|
[=>...................] resync = 8.5% (16775552/195310144) finish=17.0min speed=259783K/sec
|
||||||
|
|
||||||
md7 : active raid6 sdb1[0] sde1[3] sdd1[2] sdc1[1]
|
md7 : active raid6 sdb1[0] sde1[3] sdd1[2] sdc1[1]
|
||||||
7813735424 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/3] [U_UU]
|
7813735424 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/3] [U_UU]
|
||||||
|
@ -142,7 +142,7 @@ func parseMdstat(mdStatusFilePath string) ([]mdStatus, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if l[0] == ' ' {
|
if l[0] == ' ' || l[0] == '\t' {
|
||||||
// Those lines are not the beginning of a md-section.
|
// Those lines are not the beginning of a md-section.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user