X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils_threshold.c;h=bea5bfb5ea210620c9703f77db4e444eb9764a15;hb=10075e6fe3c384b73c2dd398a1435f8d10e56654;hp=bf04c633d62a28b13d3868816c3b0f1083bb841d;hpb=089d33f1f455da115ca0c87160df8dbd49286377;p=collectd.git diff --git a/src/utils_threshold.c b/src/utils_threshold.c index bf04c633..bea5bfb5 100644 --- a/src/utils_threshold.c +++ b/src/utils_threshold.c @@ -616,6 +616,14 @@ static int ut_report_state (const data_set_t *ds, bufsize -= status; } + plugin_notification_meta_add_string (&n, "DataSource", + ds->ds[ds_index].name); + plugin_notification_meta_add_double (&n, "CurrentValue", values[ds_index]); + plugin_notification_meta_add_double (&n, "WarningMin", th->warning_min); + plugin_notification_meta_add_double (&n, "WarningMax", th->warning_max); + plugin_notification_meta_add_double (&n, "FailureMin", th->failure_min); + plugin_notification_meta_add_double (&n, "FailureMax", th->failure_max); + /* Send an okay notification */ if (state == STATE_OKAY) { @@ -666,6 +674,7 @@ static int ut_report_state (const data_set_t *ds, plugin_dispatch_notification (&n); + plugin_notification_meta_free (&n); return (0); } /* }}} int ut_report_state */