From 1169252280c94e728adcba5a3d3a0e190c9d9068 Mon Sep 17 00:00:00 2001 From: lgz Date: Fri, 30 Dec 2016 15:45:45 +0900 Subject: update regex --- python.d/mdstat.chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python.d/mdstat.chart.py') 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() -- cgit v1.2.3