X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdcached.c;fp=src%2Frrdcached.c;h=7e0b1e77ef3b523f45eb3a188598a0ee3b8bae2a;hb=47b7950c0bd0ae0b3823b8bfc4442d6a5dad36c5;hp=0a9803599520425bd3c640abf5ec1141939379e2;hpb=2ca216cdb1448df90add943702f0af9ba1bcd0c5;p=collectd.git diff --git a/src/rrdcached.c b/src/rrdcached.c index 0a980359..7e0b1e77 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -1,6 +1,6 @@ /** * collectd - src/rrdcached.c - * Copyright (C) 2008-2012 Florian octo Forster + * Copyright (C) 2008-2013 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -320,6 +320,14 @@ static int rc_read (void) sstrncpy (vl.host, daemon_address, sizeof (vl.host)); sstrncpy (vl.plugin, "rrdcached", sizeof (vl.plugin)); + status = rrdc_connect (daemon_address); + if (status != 0) + { + ERROR ("rrdcached plugin: rrdc_connect (%s) failed with status %i.", + daemon_address, status); + return (-1); + } + head = NULL; status = rrdc_stats_get (&head); if (status != 0)