helper streams for riemann to acknowledge alerts
Clojure JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources
src/riemann/plugin
.gitignore
LICENSE
README.md
project.clj

README.md

riemann-acknowledgement

Acknowledge riemann alerts. Control on separate web interface.

Synopsis

In riemann.config

(load-plugins)

(acknowledgement/acknowledgement-server)

(def mailout (let [m (mailer {:from "riemann@example.com"})]
               (m "alerts@example.com")))

(streams

  (acknowledgement/acked-alert-stream
     mailout))

Installing

You will need to build this module for now and push it on riemann's classpath, for this you will need a working JDK, JRE and leiningen.

First build the project:

lein uberjar

The resulting artifact will be in target/riemann-acknowledgement-standalone-0.1.1.jar. You will need to push that jar on the machine(s) where riemann runs, for instance, in /usr/lib/riemann/riemann-acknowledgement.jar.

If you have installed riemann from a stock package you will only need to tweak /etc/default/riemann and change the line EXTRA_CLASSPATH to read:

EXTRA_CLASSPATH=/usr/lib/riemann/riemann-acknowledgement.jar

You can then use exposed functions, provided you have loaded the plugin in your configuration.

Screenshot

riemann-acknowledgement

Caveats

acknowledgements are preserved accross configuration reloads, not accross configuration restarts