From: Jan Kundrát Date: Tue, 11 Mar 2014 09:59:32 +0000 (+0100) Subject: thresholds: Log the current value of a DS value when generating an OKAY notification X-Git-Tag: collectd-5.5.0~268^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ea1cc9352ecd3ea9644fa9e93a4f4cd11cd7350;p=collectd.git thresholds: Log the current value of a DS value when generating an OKAY notification --- 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; }