Code

collectd::unixsock: Support 'rrdcached' metrics as well.
authorSebastian Harl <sh@tokkee.org>
Fri, 29 Aug 2014 07:55:34 +0000 (09:55 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 29 Aug 2014 07:55:34 +0000 (09:55 +0200)
It's the same as 'rrdtool' :-)

src/plugins/backend/collectd/unixsock.c

index e7b6416..da77d72 100644 (file)
@@ -407,7 +407,8 @@ sdb_collectd_config_instance(oconfig_item_t *ci)
        if (ud->ts_type) {
                /* TODO: add support for other backend types
                 * -> will require different ID generation */
-               if (strcasecmp(ud->ts_type, "rrdtool")) {
+               if (strcasecmp(ud->ts_type, "rrdtool")
+                               && strcasecmp(ud->ts_type, "rrdcached")) {
                        sdb_log(SDB_LOG_ERR, "collectd::unixsock backend: "
                                        "TimeseriesBackend '%s' is not supported - "
                                        "use 'rrdtool' instead.", ud->ts_type);