A tool that uses Rundeck API to get failed jobs information and sends it via email using Mandrill API.
Download source via:
$ git clone https://github.com/vitorbari/rundeck-failed-jobs.git
You will need Go installed to build from source.
$ go build rundeck-failed-jobs.go
Open conf.json
.
You should specify your RunDeck server, Mandrill Key and recipients for the notifications.
$ ./rundeck-failed-jobs --project=<project name> [--group<group name>] [--recentfilter=<filter>]
Title: [RunDeck] [ACME] 2 failures!
Email Body:
2 Failed Executions from project [ACME].
Executions:
ACME_SRV-APP05_PRD_UPDATE_STATUS
http://192.168.0.10:4440/execution/follow/175085
Started: 2015-12-06T18:00:00Z | User:vitor.bari
Nodes: srv-app05
ACME_SRV-APP05_PRD_CLEAR_LOGS
http://192.168.0.10:4440/execution/follow/175079
Started: 2015-12-06T17:55:00Z | User:vitor.bari
Nodes: srv-app05
For more information about RunDeck API, go to http://rundeck.org/2.6.0/api/index.html.
Mandrill website https://mandrillapp.com.