From: Florian Forster Date: Fri, 28 Dec 2007 20:13:35 +0000 (+0100) Subject: src/utils_cache.c: Call `ut_check_interesting' before sending OKAY notifications... X-Git-Tag: collectd-4.3.0beta0~47 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e541dd871f040c19ad6eaada86f1f6d61cff204;p=collectd.git src/utils_cache.c: Call `ut_check_interesting' before sending OKAY notifications, too. --- diff --git a/src/utils_cache.c b/src/utils_cache.c index 61c0804a..5795e7db 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -368,6 +368,17 @@ int uc_update (const data_set_t *ds, const value_list_t *vl) pthread_mutex_unlock (&cache_lock); + /* Do not send okay notifications for uninteresting values, i. e. values for + * which no threshold is configured. */ + if (send_okay_notification > 0) + { + int status; + + status = ut_check_interesting (name); + if (status <= 0) + send_okay_notification = 0; + } + if (send_okay_notification > 0) { notification_t n;