From 7e541dd871f040c19ad6eaada86f1f6d61cff204 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 28 Dec 2007 21:13:35 +0100 Subject: [PATCH] src/utils_cache.c: Call `ut_check_interesting' before sending OKAY notifications, too. --- src/utils_cache.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- 2.30.2