diff options
author | lgz <lgz@loled2> | 2016-12-30 15:45:45 +0900 |
---|---|---|
committer | lgz <lgz@loled2> | 2016-12-30 15:45:45 +0900 |
commit | 1169252280c94e728adcba5a3d3a0e190c9d9068 (patch) | |
tree | d62f64eff35fe49449562d5f87924de71cc84dd3 /python.d/mdstat.chart.py | |
parent | 68f1c378bb1b57cb548e0d3f272c5b1613177577 (diff) |
update regex
Diffstat (limited to 'python.d/mdstat.chart.py')
-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 8b0500eb36..5a51660d29 100644 --- a/python.d/mdstat.chart.py +++ b/python.d/mdstat.chart.py @@ -18,7 +18,7 @@ class Service(SimpleService): [None, 'Faulty devices in MD', 'failed disks', 'health', 'md.health', 'line'], 'lines': []}} self.proc_mdstat = '/proc/mdstat' - self.regex_disks = compile(r'((?<= )[md_]+[0-9]+(?= : active)).*?((?<= \[)[0-9]+)/([0-9]+(?=\] ))') + self.regex_disks = compile(r'((?<=\ )[a-zA-Z_0-9]+(?= : active)).*?((?<= \[)[0-9]+)/([0-9]+(?=\] ))') def check(self): raw_data = self._get_raw_data() |