From f2f52fa0700944578af732abf40fc40f3f65d0a6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 17 Jun 2011 09:05:48 +0200 Subject: [PATCH] threshold plugin: Dont check for interesting values if there are no thresholds. --- src/threshold.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/threshold.c b/src/threshold.c index 7bbc59ef..88616e95 100644 --- 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); -- 2.11.0