From: Adrian Miron Date: Sat, 8 Mar 2014 18:17:09 +0000 (+0200) Subject: write_riemann: send notification message to riemann via description field X-Git-Tag: collectd-5.5.0~313^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=22ba280197b0ab9befc9d74f4b06ccd04b22d0c2;p=collectd.git write_riemann: send notification message to riemann via description field --- diff --git a/src/write_riemann.c b/src/write_riemann.c index c890818d..e85e9436 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -425,6 +425,9 @@ static Msg *riemann_notification_to_protobuf (struct riemann_host *host, /* {{{ n->type, n->type_instance); event->service = strdup (&service_buffer[1]); + if (n->message[0] != 0) + riemann_event_add_attribute (event, "description", n->message); + /* Pull in values from threshold and add extra attributes */ for (meta = n->meta; meta != NULL; meta = meta->next) {