projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2bccac
)
netapp plugin: Document the graceful return if statistics are not wanted.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 28 Sep 2009 13:45:13 +0000
(15:45 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 28 Sep 2009 13:45:13 +0000
(15:45 +0200)
Unfortunately this behavior isn't exactly obvious.
src/netapp.c
patch
|
blob
|
history
diff --git
a/src/netapp.c
b/src/netapp.c
index
c294f69
..
a4b30cc
100644
(file)
--- a/
src/netapp.c
+++ b/
src/netapp.c
@@
-806,6
+806,7
@@
static int cna_query_wafl (host_config_t *host) /* {{{ */
if (host == NULL)
return (EINVAL);
+ /* If WAFL was not configured, return without doing anything. */
if (host->cfg_wafl == NULL)
return (0);
@@
-998,6
+999,8
@@
static int cna_query_disk (host_config_t *host) /* {{{ */
if (host == NULL)
return (EINVAL);
+ /* If the user did not configure disk statistics, return without doing
+ * anything. */
if (host->cfg_disk == NULL)
return (0);