Code

collectd::unixsock: Support 'rrdcached' metrics as well.
[sysdb.git] / src / plugins / backend / collectd / unixsock.c
index e7b6416999065d49f12f17748250e5c5dfb00780..da77d727a213dd2325cc8edf5b0801d50648775a 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);