From 9ea1cc9352ecd3ea9644fa9e93a4f4cd11cd7350 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kundr=C3=A1t?= Date: Tue, 11 Mar 2014 10:59:32 +0100 Subject: [PATCH] thresholds: Log the current value of a DS value when generating an OKAY notification --- src/threshold.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/threshold.c b/src/threshold.c index 2173fa80..a4449741 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -629,7 +629,9 @@ static int ut_report_state (const data_set_t *ds, ": Value is no longer missing."); else status = ssnprintf (buf, bufsize, - ": All data sources are within range again."); + ": All data sources are within range again. " + "Current value of \"%s\" is %f.", + ds->ds[ds_index].name, values[ds_index]); buf += status; bufsize -= status; } -- 2.11.0