projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f0fb09
)
Add ability to ignore bad daemon configs
author
daryder
<daryder@cisco.com>
Thu, 4 Dec 2014 20:09:19 +0000
(15:09 -0500)
committer
daryder
<daryder@cisco.com>
Thu, 4 Dec 2014 20:09:19 +0000
(15:09 -0500)
src/ceph.c
patch
|
blob
|
history
diff --git
a/src/ceph.c
b/src/ceph.c
index
fb215ef
..
5726e01
100644
(file)
--- 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)
{