1

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 "user@somewhere.com")))

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).

Community
  • 1
  • 1
ali haider
  • 19,175
  • 17
  • 80
  • 149

1 Answers1

4

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

See example HERE

Jeevan Patil
  • 6,029
  • 3
  • 33
  • 50
KobbyPemson
  • 2,519
  • 1
  • 18
  • 33