Home

Awesome

Seyren-Init

Init.d Script for Graphite Alerting Dashboard Seyren

This is an init.d script for the Seyren which allows you to start the service.

To use this you will need to make the below amendments for your environment

##Instructions

  1. Copy the seyren init.d script to /etc/init.d/ of the server that its installed on.
  2. Amend the permissions of the seyren script so that its runnable (eg chmod 754 seyren)
  3. Amend the Core environment parameters in the init.d script for your environment detailed below.
  4. Amend the seyrend java directory and home directory for the seyren install. (EG /usr/bin/java and /usr/local/seyren-master)

####Example Environment

init.d environment variables

GRAPHITE_URL="http://graphite.somewebsite.com" export GRAPHITE_URL

SMTP_HOST="smtp.host.com" export SMTP_HOST

SMTP_PORT="25" export SMTP_PORT

Example seyrend java directory + seyren home directory

#####seyrend=${SEYREND-/usr/bin/java -jar /usr/local/seyren-master/seyren-web/target/dependency/jetty-runner.jar --path /seyren /usr/local/seyren-master/seyren-web/target/*.war > /dev/null 2>&1 >> /var/log/seyren/seyren.output.log 2>> /var/log/seyren/seyren.log &}

There are further environment variables that can be added if needed which are not currently in the script, however feel free to amend this for your needs as necessary.

##Full Environment list

Base

SMTP

HipChat

PagerDuty

Hubot

Flowdock