projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb29e85
)
threshold plugin: Dont check for interesting values if there are no thresholds.
author
Sebastian Harl
<sh@tokkee.org>
Fri, 17 Jun 2011 07:05:48 +0000
(09:05 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Fri, 17 Jun 2011 07:05:48 +0000
(09:05 +0200)
src/threshold.c
patch
|
blob
|
history
diff --git
a/src/threshold.c
b/src/threshold.c
index
7bbc59e
..
88616e9
100644
(file)
--- a/
src/threshold.c
+++ b/
src/threshold.c
@@
-990,6
+990,10
@@
static int ut_missing (const value_list_t *vl,
char identifier[6 * DATA_MAX_NAME_LEN];
notification_t n;
+ /* dispatch notifications for "interesting" values only */
+ if (threshold_tree == NULL)
+ return (0);
+
th = threshold_search (vl);
if (th == NULL)
return (0);