X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Faggregation.c;fp=src%2Faggregation.c;h=db33c177c039fa1676d9fcdc690b47d428f9a82b;hb=39e8aea3d71784b76d2cb7a03e4506e26de7de4b;hp=e50557d91ab18651ee327cf89e387fa730fe169d;hpb=b22ffd9cb1938b4931d7628420a9f0b50461333f;p=collectd.git diff --git a/src/aggregation.c b/src/aggregation.c index e50557d9..db33c177 100644 --- a/src/aggregation.c +++ b/src/aggregation.c @@ -192,13 +192,21 @@ static int agg_instance_update (agg_instance_t *inst, /* {{{ */ gauge_t *rate; if (ds->ds_num != 1) - return (-1); + { + ERROR ("aggregation plugin: The \"%s\" type (data set) has more than one " + "data source. This is currently not supported by this plugin. " + "Sorry.", ds->type); + return (EINVAL); + } rate = uc_get_rate (ds, vl); if (rate == NULL) { - ERROR ("aggregation plugin: uc_get_rate() failed."); - return (-1); + char ident[6 * DATA_MAX_NAME_LEN]; + FORMAT_VL (ident, sizeof (ident), vl); + ERROR ("aggregation plugin: Unable to read the current rate of \"%s\".", + ident); + return (ENOENT); } if (isnan (rate[0]))