X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fthreshold.c;h=a4449741d0c566ee4df8dac7cb196c33e98dd9e5;hb=9ea1cc9352ecd3ea9644fa9e93a4f4cd11cd7350;hp=7df4d616a977cb5ca53028c6808b08c1c580ba80;hpb=38d06a8f868293466f4eee943555c65457a5e560;p=collectd.git diff --git a/src/threshold.c b/src/threshold.c index 7df4d616..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; } @@ -773,7 +775,7 @@ static int ut_check_one_data_source (const data_set_t *ds, if ((!isnan (th->warning_min) && (th->warning_min > values[ds_index])) || (!isnan (th->warning_max) && (th->warning_max < values[ds_index]))) is_warning++; - } + } if (is_failure != 0) return (STATE_ERROR);