From 169f4b5d950a37fa1585f19118aeb0b9abd8a317 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 10 Oct 2016 16:44:40 +0200 Subject: [PATCH] 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 --- src/powerdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2