From 26a6d89059bb9e303bc8b1bb04444ad167baed2b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 22 Jan 2013 19:07:13 +0100 Subject: [PATCH] write_riemann plugin: Fix two bugs in the example configuration. Remove a trailing ">" from the example config and use the correct config item to configure the "StoreRates" option. --- src/collectd.conf.in | 2 +- src/write_riemann.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 9c02ce60..12891fb6 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -1063,7 +1063,7 @@ # # -# Host "localhost"> +# Host "localhost" # Port 5555 # StoreRates true # diff --git a/src/write_riemann.c b/src/write_riemann.c index cd0132d2..33fb0a55 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -448,7 +448,7 @@ riemann_connect(struct riemann_host *host) memset(&hints, 0, sizeof(hints)); memset(&service, 0, sizeof(service)); - hints.ai_family = PF_UNSPEC; + hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; #ifdef AI_ADDRCONFIG hints.ai_flags |= AI_ADDRCONFIG; @@ -579,7 +579,7 @@ riemann_config_node(oconfig_item_t *ci) break; } } else if (strcasecmp ("StoreRates", child->key) == 0) { - status = cf_util_get_boolean (ci, &host->store_rates); + status = cf_util_get_boolean (child, &host->store_rates); if (status != 0) break; } else { -- 2.30.2