zardoz99
Posts: 175
Joined: Fri Jan 13, 2012 2:25 pm
Location: Somewhere in Canada.

Collectd "Disk" plugin no longer works for later kernels.

Mon May 27, 2019 12:14 pm

This is just an FYI, to save people tearing their hair out, like I did.

Due to the format changes in /proc/diskstats with the additional 4 fields, the code in the disk.so module no longer reads any drive metrics for Collectd version 5.7.1-1.1 (Stretch).

It's expecting 14 fields and there are now 18, so it skips the entries.

mgunther
Posts: 1
Joined: Sun Aug 11, 2019 10:31 am
Location: Ireland

Re: Collectd "Disk" plugin no longer works for later kernels.

Sun Aug 11, 2019 10:54 am

Thanks for the info, I was wondering why some disk-related graphs did not work any more for me and I finally found the reason here.

Is there any fix, remedy or workaround? Will the collectd package be updated to deal with the new format and 18 fields?

I currently have:

Code: Select all

sudo dpkg -l | grep collectd
ii  collectd-core                        5.7.1-1.1
and

Code: Select all

uname -a
Linux xyz-pi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux

Return to “Raspbian”