X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fceph.c;h=5ea90499ae2090a35d646a2d4284768e4a80fc43;hp=73140a54a7deb05194bafc8a1e2312dfab80f551;hb=f68cb4a273127e2e448a5e1beff5a7e7bef2be64;hpb=9c6c1bdb92537f307d245c52349d3f196ec4d33d diff --git a/src/ceph.c b/src/ceph.c index 73140a54..5ea90499 100644 --- a/src/ceph.c +++ b/src/ceph.c @@ -281,7 +281,9 @@ static int ceph_cb_number(void *ctx, const char *number_val, * "rate", use the "sum" in the pair and assign that to the derive * value. */ if (convert_special_metrics && (state->depth > 2) && + state->stack[state->depth - 2] && (strcmp("filestore", state->stack[state->depth - 2]) == 0) && + state->stack[state->depth - 1] && (strcmp("journal_wr_bytes", state->stack[state->depth - 1]) == 0) && (strcmp("avgcount", state->key) == 0)) { DEBUG("ceph plugin: Skipping avgcount for filestore.JournalWrBytes");