Code

drbd plugin: improve header lines identification
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 20 Jan 2016 21:32:03 +0000 (22:32 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 22 Jan 2016 09:51:17 +0000 (10:51 +0100)
commit6eb5239cb5b9663722e0dabb036e7263696ed5aa
tree4f5aefa2aa0510672da3f27b29f7fb7ffc889779
parent2750679e88aa89e573d543edfbc89df09579fe45
drbd plugin: improve header lines identification

Recent DRBD versions display more detailed build information in
`/proc/drbd`, which caused the header identification to fail.

Comparing the first part of each line against all known header prefixes
will hopefully make this more robust.

Fixes #1514

Signed-off-by: Florian Forster <octo@collectd.org>
src/drbd.c