summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e0552af)
raw | patch | inline | side by side (parent: e0552af)
author | Florian Forster <octo@collectd.org> | |
Mon, 1 Apr 2013 14:38:08 +0000 (16:38 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 1 Apr 2013 14:38:08 +0000 (16:38 +0200) |
Fixes Github issue #275. Thanks to Yves Mettier for reporting this bug!
src/rrdcached.c | patch | blob | history |
diff --git a/src/rrdcached.c b/src/rrdcached.c
index 11c1c6a7f85c3e96c2380602094c81f09e4bb97f..3518f2dd0d28fddfad1c616b0347813602a9c6dd 100644 (file)
--- a/src/rrdcached.c
+++ b/src/rrdcached.c
/**
* collectd - src/rrdcached.c
- * Copyright (C) 2008 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
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * Florian octo Forster <octo at verplant.org>
+ * Florian octo Forster <octo at collectd.org>
**/
#include "collectd.h"
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)