From: Björn Date: Tue, 18 Jun 2013 14:43:46 +0000 (+0200) Subject: threshold plugin: Fix the "Interesting" configuration option. X-Git-Tag: collectd-5.3.1~2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a15042009febe214f7d5778e381bf990422f3b72;p=thirdparty%2Fcollectd.git threshold plugin: Fix the "Interesting" configuration option. Signed-off-by: Florian Forster --- diff --git a/src/threshold.c b/src/threshold.c index d4cfd6ea9..7df4d616a 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -943,12 +943,12 @@ 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) + /* dispatch notifications for "interesting" values only */ + if ((th == NULL) || ((th->flags & UT_FLAG_INTERESTING) == 0)) return (0); missing_time = cdtime () - vl->time;