Code

respect riemann's terminology
authorPierre-Yves Ritschard <pyr@spootnik.org>
Thu, 7 Mar 2013 08:18:04 +0000 (09:18 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 23 Mar 2013 09:20:21 +0000 (10:20 +0100)
Signed-off-by: Florian Forster <octo@collectd.org>
src/write_riemann.c

index df0c373352d696ebd8b6ff7490f14f1c715862f0..72ec879f99c8a2abb8dd915630bb17fb1c7365b2 100644 (file)
@@ -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);