node_exporter: ERROR: mdadm collector failed

after 0.000073s: error parsing mdstatus: error parsing mdstat: too few matches found in statusline: 4186624 blocks super 1.2 256k chunks" source="node_exporter.go:92"

This is what my /proc/mdstat looks like:

$ cat /proc/mdstat
Personalities : [raid0]
md0 : active raid0 xvdb[0]
      4186624 blocks super 1.2 256k chunks

unused devices: <none>

System:

$ uname -a
Linux hostname 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

I’m running node_exporter v0.12.0rc3 compiled with go1.5.3 Anyone have any ideas how to fix this?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Just testing with the merged commit and I still see collector errors, here is my mdstat info, kernel /linux version details and the error i see from the collector:

➜  node_exporter git:(master) ✗ cat /proc/mdstat                    
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md126 : active raid5 sda[2] sdb[1] sdc[0]
      1953519616 blocks super external:/md127/0 level 5, 64k chunk, algorithm 0 [3/3] [UUU]

md127 : inactive sdb[2](S) sdc[1](S) sda[0](S)
      7932 blocks super external:imsm

unused devices: <none>

OS details: ➜ node_exporter git:(master) ✗ uname -a Linux radiohead 3.19.0-65-generic #73~14.04.1-Ubuntu SMP Wed Jun 29 21:05:22 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Error from collector: ERRO[0044] ERROR: mdadm collector failed after 0.000094s: error parsing mdstatus: error parsing mdstat: too few matches found in statusline: 7932 blocks super external:imsm source=node_exporter.go:91

Compiled the collector at b55019f10b3 with go 1.4.2

This doesn’t look like the same issue because it seems to be throwing a different error. My fix does not help with that. I added your text to the test suite and it fails with the same error as you say above. I’m happy to fix it too but I haven’t gotten this PR in yet and I’m wondering if this issue is going to become “mdstat” doesn’t parse things right, bucket of problems.