projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
69187b7
)
Merge pull request #575 from amiron/riemann_notification_message
author
Pierre-Yves Ritschard
<pyr@spootnik.org>
Mon, 10 Mar 2014 15:33:06 +0000
(16:33 +0100)
committer
Pierre-Yves Ritschard
<pyr@spootnik.org>
Mon, 10 Mar 2014 15:33:06 +0000
(16:33 +0100)
write_riemann: send notification message
src/write_riemann.c
patch
|
blob
|
history
diff --git
a/src/write_riemann.c
b/src/write_riemann.c
index
c890818
..
e85e943
100644
(file)
--- 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)
{