Code

threshold plugin: Fix the "Interesting" configuration option.
authorBjörn <bjoern@abox.el1t3.org>
Tue, 18 Jun 2013 14:43:46 +0000 (16:43 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 18 Jun 2013 14:44:48 +0000 (16:44 +0200)
Signed-off-by: Florian Forster <octo@collectd.org>
src/threshold.c

index d4cfd6ea922ef2dbc984e6ca137f28774aa6ed68..7df4d616a977cb5ca53028c6808b08c1c580ba80 100644 (file)
@@ -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;