From: Pierre-Yves Ritschard Date: Thu, 7 Mar 2013 08:18:04 +0000 (+0100) Subject: respect riemann's terminology X-Git-Tag: collectd-5.3.0~22 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=357a7a8a2d392d2ede198ef8f5e99515306eab30;p=collectd.git respect riemann's terminology Signed-off-by: Florian Forster --- diff --git a/src/write_riemann.c b/src/write_riemann.c index df0c3733..72ec879f 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -226,9 +226,9 @@ static Msg *riemann_notification_to_protobuf (struct riemann_host *host, /* {{{ switch (n->severity) { - case NOTIF_OKAY: severity = "okay"; break; + case NOTIF_OKAY: severity = "ok"; break; case NOTIF_WARNING: severity = "warning"; break; - case NOTIF_FAILURE: severity = "failure"; break; + case NOTIF_FAILURE: severity = "critical"; break; default: severity = "unknown"; } event->state = strdup (severity);