黎曼电子邮件设置问题

时间:2014-02-27 15:47:07

标签: clojure riemann

我正在尝试使用电子邮件警报设置riemann(用于监控)。我在我的riemann.config文件中使用了以下部分,但在重新加载配置后,我得到了下面复制的错误。任何有关解决此问题的想法将不胜感激。

Riemann.config

(streams
 (where (and (service #"^riemann netty execution-handler")
             (state "critical"))
        (email "user@somewhere.com")))

错误

java.lang.RuntimeException: Unable to resolve symbol: email in this context, compiling:(/home/user/test/riemann-0.2.4/etc/riemann.config:40:9)

我忘了在配置中添加邮件程序部分 - 更新以便跟随。

尝试发送电子邮件是成功的 - 我现在收到一个不同的错误,我将作为单独的问题发布(riemann email exception with SMTP)。

1 个答案:

答案 0 :(得分:4)

您缺少将(let ...)定义为email的{​​{1}}表达式。

参见示例HERE