From: Ruben Kerkhof Date: Mon, 10 Oct 2016 14:44:40 +0000 (+0200) Subject: powerdns plugin: fix parsing of last key X-Git-Tag: collectd-5.5.3~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=169f4b5d950a37fa1585f19118aeb0b9abd8a317;p=collectd.git powerdns plugin: fix parsing of last key I found this in my logs: collectd[4678]: powerdns plugin: submit: Not found in lookup table: questions#012 = 98797645; The octal #012 is '\n'. Add a space before the newline so the default command is split into keys correctly. Signed-off-by: Florian Forster --- diff --git a/src/powerdns.c b/src/powerdns.c index c9e9359a..1d2516ef 100644 --- a/src/powerdns.c +++ b/src/powerdns.c @@ -51,7 +51,7 @@ #define RECURSOR_SOCKET LOCALSTATEDIR"/run/pdns_recursor.controlsocket" #define RECURSOR_COMMAND "get noerror-answers nxdomain-answers " \ "servfail-answers sys-msec user-msec qa-latency cache-entries cache-hits " \ - "cache-misses questions\n" + "cache-misses questions \n" struct list_item_s; typedef struct list_item_s list_item_t;