Search code examples
clojureriemann

riemann email setup issue


I am trying to set up riemann (for monitoring) with email alerts. I have used the following section in my riemann.config file but after reloading the config, I get the error copied below. Any thoughts on troubleshooting this will be greatly appreciated.

Riemann.config

(streams
 (where (and (service #"^riemann netty execution-handler")
             (state "critical"))
        (email "[email protected]")))

Error:

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

I forgot to add the mailer section in the config - update to follow.

The attempt to send the email is successful - I am getting a different error now which I will post as a separate question (riemann email exception with SMTP).


Solution

  • You are missing the (let ...) expression that defines email as a mailer.

    See example HERE