From 905fa2fb9768f848916c3bd6b9543d0d63845f70 Mon Sep 17 00:00:00 2001 From: daryder Date: Thu, 4 Dec 2014 15:09:19 -0500 Subject: [PATCH] Add ability to ignore bad daemon configs --- src/ceph.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.11.0