Мне удалось настроить riemann с SMTP. Риман, кажется, отправляет электронное письмо, когда условие выполняется, но я наблюдаю исключение (скопированное ниже) - любое понимание того, как устранить неполадки/исправить это, будет оценено.
Конфигурация
(def email (mailer {:host "xxx.xxx.xxx.xxx"
:port "xxxx"
:user "[email protected]"
:pass "user12345"
:from "[email protected]"}))
(streams
(where (and (service #"^riemann netty execution-handler"))
(email "[email protected]")))
Ошибка:
#riemann.codec.Event{:host "ubuntu-3", :service "riemann netty execution-handler threads active", :state "ok", :description nil, :metric 0, :tags nil, :time 348380111059/250, :ttl 20000}
WARN [2014-02-27 12:00:44,278] Thread-10 - riemann.config - riemann.email$mailer$make_stream__16773$stream__16774@4e9c33e9 threw
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at postal.smtp$smtp_send_STAR_.invoke(smtp.clj:33)
at postal.smtp$smtp_send.doInvoke(smtp.clj:58)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at postal.core$send_message.invoke(core.clj:35)
at riemann.email$email_event.invoke(email.clj:18)
at riemann.email$mailer$make_stream__16773$stream__16774.invoke(email.clj:69)
at riemann.config$eval40$stream__41$fn__46.invoke(riemann.config:44)
at riemann.config$eval40$stream__41.invoke(riemann.config:44)
at riemann.core$stream_BANG_$fn__10513.invoke(core.clj:19)
at riemann.core$stream_BANG_.invoke(core.clj:18)
at riemann.core$instrumentation_service$measure__10522.invoke(core.clj:56)
at riemann.service.ThreadService$thread_service_runner__8329$fn__8330.invoke(service.clj:64)
at riemann.service.ThreadService$thread_service_runner__8329.invoke(service.clj:63)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:744)
:port
в вашей конфигурации на число, а не на строку? - person d.j.sheldrick   schedule 27.02.2014