diff options
author | Jeff Henson <jeff@henson.io> | 2017-07-25 08:11:16 -0600 |
---|---|---|
committer | Jeff Henson <jeff@henson.io> | 2017-07-25 08:11:16 -0600 |
commit | cc4e386f89e685e378f6c184c680243d146a71d7 (patch) | |
tree | fd23eeac6140181706267211c9a08509cd96adbb | |
parent | 39f0f9e590d479d4bdb588cad59e30198e2b4699 (diff) |
Fix parsing of mdstat output
When an operation is in progress, there could be two spaces before the
percentage when it's less than 10%.
-rw-r--r-- | python.d/mdstat.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/mdstat.chart.py b/python.d/mdstat.chart.py index ca9aba5641..7ce7b19329 100644 --- a/python.d/mdstat.chart.py +++ b/python.d/mdstat.chart.py @@ -20,7 +20,7 @@ class Service(SimpleService): r'(?P<total_disks>[0-9]+)/' r'(?P<inuse_disks>[0-9])\]'), status=re_compile(r' (?P<array>[a-zA-Z_0-9]+) : active .+ ' - r'(?P<operation>[a-z]+) = ' + r'(?P<operation>[a-z]+) =[ ]{1,2}' r'(?P<operation_status>[0-9.]+).+finish=' r'(?P<finish>([0-9.]+))min speed=' r'(?P<speed>[0-9]+)')) |