summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a0bb25)
raw | patch | inline | side by side (parent: 3a0bb25)
author | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Thu, 12 Jun 2008 13:27:10 +0000 (15:27 +0200) | ||
committer | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Thu, 12 Jun 2008 13:27:10 +0000 (15:27 +0200) |
The min/max warning/failure values, the current value and name of the
data source are now included in the meta data part of the notification.
data source are now included in the meta data part of the notification.
src/utils_threshold.c | patch | blob | history |
diff --git a/src/utils_threshold.c b/src/utils_threshold.c
index bf04c633d62a28b13d3868816c3b0f1083bb841d..bea5bfb5ea210620c9703f77db4e444eb9764a15 100644 (file)
--- a/src/utils_threshold.c
+++ b/src/utils_threshold.c
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)
{
plugin_dispatch_notification (&n);
+ plugin_notification_meta_free (&n);
return (0);
} /* }}} int ut_report_state */