From: daryder Date: Thu, 4 Dec 2014 20:09:19 +0000 (-0500) Subject: Add ability to ignore bad daemon configs X-Git-Tag: collectd-5.5.0~80^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=905fa2fb9768f848916c3bd6b9543d0d63845f70;p=collectd.git Add ability to ignore bad daemon configs --- diff --git a/src/ceph.c b/src/ceph.c index fb215ef9..5726e010 100644 --- a/src/ceph.c +++ b/src/ceph.c @@ -791,10 +791,16 @@ static int ceph_config(oconfig_item_t *ci) if(strcasecmp("Daemon", child->key) == 0) { ret = cc_add_daemon_config(child); - if(ret) + if(ret == ENOMEM) { + ERROR("ceph plugin: Couldn't allocate memory"); return ret; } + else if(ret) + { + //process other daemons and ignore this one + continue; + } } else if(strcasecmp("LongRunAvgLatency", child->key) == 0) {