sensu-plugins-mailer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +12 -0
- data/LICENSE +22 -0
- data/README.md +86 -0
- data/bin/handler-mailer-mailgun.rb +83 -0
- data/bin/handler-mailer-ses.rb +69 -0
- data/bin/handler-mailer.rb +151 -0
- data/lib/sensu-plugins-mailer.rb +1 -0
- data/lib/sensu-plugins-mailer/version.rb +9 -0
- metadata +264 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0ab08fc73e135528afb8de4371f23efa25082f74
|
4
|
+
data.tar.gz: c525b08f8f595ccc7f327d545a2092ec3b9dd85d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 528cc004e90ab7fc95b9d88d582dfbf8a0f3667d7a12312592b18c536311432ec50f0fa81a5fc18e3bd86d54fe1026ca7ea3d59f81d03c74d697898d07f938fe
|
7
|
+
data.tar.gz: 8c1335a01536cc87b24d3df7891d1ad28f37ee83806b2cb81d6d41843d043116df6a4b45a6fb9d1df03f173d50727dc7847f0ac63372a538d9d789d6699516b9
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#Change Log
|
2
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
|
+
|
4
|
+
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
|
+
|
6
|
+
## Unreleased][unreleased]
|
7
|
+
|
8
|
+
## 0.0.1 - 2015-06-04
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- initial release
|
12
|
+
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Sensu-Plugins
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
## Sensu-Plugins-mailer
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-mailer.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-mailer)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-mailer.svg)](http://badge.fury.io/rb/sensu-plugins-mailer)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mailer/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mailer)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mailer/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mailer)
|
7
|
+
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-mailer.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-mailer)
|
8
|
+
[![Codeship Status for sensu-plugins/sensu-plugins-mailer](https://codeship.com/projects/558443b0-ea2d-0132-729c-4602e60b2e9f/status?branch=master)](https://codeship.com/projects/83060)
|
9
|
+
|
10
|
+
## Functionality
|
11
|
+
|
12
|
+
## Files
|
13
|
+
* bin/handler-mailer-mailgun.rb
|
14
|
+
* bin/handler-mailer-ses.rb
|
15
|
+
* bin/handler-mailer.rb
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
The following three configuration variables must be set if you want mailer to use remote SMTP settings:
|
20
|
+
|
21
|
+
smtp_address - defaults to "localhost"
|
22
|
+
smtp_port - defaults to "25"
|
23
|
+
smtp_domain - defaults to "localhost.localdomain"
|
24
|
+
|
25
|
+
There is an optional subscriptions hash which can be added to your mailer.json file. This subscriptions hash allows you to define individual mail_to addresses for a given subscription. When the mailer handler runs it will check the clients subscriptions and build a mail_to string with the default mailer.mail_to address as well as any subscriptions the client subscribes to where a mail_to address is found. There can be N number of hashes inside of subscriptions but the key for a given hash inside of subscriptions must match a subscription name.
|
26
|
+
|
27
|
+
```json
|
28
|
+
{
|
29
|
+
"mailer": {
|
30
|
+
"mail_from": "sensu@example.com",
|
31
|
+
"mail_to": "monitor@example.com",
|
32
|
+
"smtp_address": "smtp.example.org",
|
33
|
+
"smtp_port": "25",
|
34
|
+
"smtp_domain": "example.org",
|
35
|
+
"subscriptions": {
|
36
|
+
"subscription_name": {
|
37
|
+
"mail_to": "teamemail@example.com"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
```
|
42
|
+
|
43
|
+
**handler-mailer-mailgun**
|
44
|
+
```
|
45
|
+
{
|
46
|
+
"mailer-mailgun": {
|
47
|
+
"mail_from": "sensu@example.com",
|
48
|
+
"mail_to": "bob@example.com",
|
49
|
+
"mg_apikey": "mailgunapikeygoeshere",
|
50
|
+
"mg_domain": "mailgun.domain.com"
|
51
|
+
}
|
52
|
+
}
|
53
|
+
```
|
54
|
+
|
55
|
+
**handler-mailer-ses**
|
56
|
+
```
|
57
|
+
{
|
58
|
+
"mailer-ses": {
|
59
|
+
"mail_from": "sensu@example.com",
|
60
|
+
"mail_to": "monitor@example.com",
|
61
|
+
"aws_access_key": "myawsaccesskey",
|
62
|
+
"aws_secret_key": "myawssecretkey",
|
63
|
+
"aws_ses_endpoint": "email.us-east-1.amazonaws.com"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
```
|
67
|
+
|
68
|
+
**handler-mailer**
|
69
|
+
```
|
70
|
+
{
|
71
|
+
"mailer": {
|
72
|
+
"admin_gui": "http://admin.example.com:8080/",
|
73
|
+
"mail_from": "sensu@example.com",
|
74
|
+
"mail_to": "monitor@example.com",
|
75
|
+
"smtp_address": "smtp.example.org",
|
76
|
+
"smtp_port": "25",
|
77
|
+
"smtp_domain": "example.org"
|
78
|
+
}
|
79
|
+
}
|
80
|
+
```
|
81
|
+
|
82
|
+
## Installation
|
83
|
+
|
84
|
+
[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
|
85
|
+
|
86
|
+
## Notes
|
@@ -0,0 +1,83 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
# mailer-mailgun.rb
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# This handler formats alerts as mail and sends them off to a pre-defined recipient
|
7
|
+
# using the Rackspace Mailgun service (http://www.rackspace.com/mailgun).
|
8
|
+
#
|
9
|
+
# OUTPUT:
|
10
|
+
# Delivers email for events.
|
11
|
+
#
|
12
|
+
# PLATFORMS:
|
13
|
+
# All
|
14
|
+
#
|
15
|
+
# DEPENDENCIES:
|
16
|
+
# gem: sensu-plugin
|
17
|
+
# gem: mailgun-ruby
|
18
|
+
#
|
19
|
+
# USAGE:
|
20
|
+
# In mailer-mailgun.json, set the following values:
|
21
|
+
# * mail_from: The from address that will appear in the email
|
22
|
+
# * mail_to: The address of the recipent
|
23
|
+
# * mg_apikey: The apikey of the Mailgun account
|
24
|
+
# * mg_domain: The domain name that you have configured Mailgun to use
|
25
|
+
#
|
26
|
+
# LICENSE:
|
27
|
+
# Chris Powell powellchristoph@gmail.com
|
28
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
29
|
+
# for details.
|
30
|
+
|
31
|
+
require 'sensu-handler'
|
32
|
+
require 'mailgun'
|
33
|
+
require 'timeout'
|
34
|
+
|
35
|
+
class Mailer < Sensu::Handler
|
36
|
+
def short_name
|
37
|
+
@event['client']['name'] + '/' + @event['check']['name']
|
38
|
+
end
|
39
|
+
|
40
|
+
def action_to_string
|
41
|
+
@event['action'].eql?('resolve') ? 'RESOLVED' : 'ALERT'
|
42
|
+
end
|
43
|
+
|
44
|
+
def handle
|
45
|
+
params = {
|
46
|
+
mail_to: settings['mailer-mailgun']['mail_to'],
|
47
|
+
mail_from: settings['mailer-mailgun']['mail_from'],
|
48
|
+
mg_apikey: settings['mailer-mailgun']['mg_apikey'],
|
49
|
+
mg_domain: settings['mailer-mailgun']['mg_domain']
|
50
|
+
}
|
51
|
+
|
52
|
+
body = <<-BODY.gsub(/^ {14}/, '')
|
53
|
+
#{@event['check']['output']}
|
54
|
+
Host: #{@event['client']['name']}
|
55
|
+
Timestamp: #{Time.at(@event['check']['issued'])}
|
56
|
+
Address: #{@event['client']['address']}
|
57
|
+
Check Name: #{@event['check']['name']}
|
58
|
+
Command: #{@event['check']['command']}
|
59
|
+
Status: #{@event['check']['status']}
|
60
|
+
Occurrences: #{@event['occurrences']}
|
61
|
+
BODY
|
62
|
+
subject = "#{action_to_string} - #{short_name}: #{@event['check']['notification']}"
|
63
|
+
|
64
|
+
mg_client = Mailgun::Client.new params[:mg_apikey]
|
65
|
+
|
66
|
+
begin
|
67
|
+
timeout 10 do
|
68
|
+
message_params = {
|
69
|
+
from: params[:mail_from],
|
70
|
+
to: params[:mail_to],
|
71
|
+
subject: subject,
|
72
|
+
text: body
|
73
|
+
}
|
74
|
+
|
75
|
+
mg_client.send_message params[:mg_domain], message_params
|
76
|
+
|
77
|
+
puts 'mail -- sent alert for ' + short_name + ' to ' + params[:mail_to]
|
78
|
+
end
|
79
|
+
rescue Timeout::Error
|
80
|
+
puts 'mail -- timed out while attempting to ' + @event['action'] + ' an incident -- ' + short_name
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Sensu Handler: mailer-ses
|
4
|
+
#
|
5
|
+
# This handler formats alerts as mails and sends them off to a pre-defined recipient.
|
6
|
+
# Copyright 2013 github.com/foomatty
|
7
|
+
# Copyright 2012 Pal-Kristian Hamre (https://github.com/pkhamre | http://twitter.com/pkhamre)
|
8
|
+
#
|
9
|
+
# Requires aws-ses gem 'gem install aws-ses'
|
10
|
+
#
|
11
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
12
|
+
# for details.
|
13
|
+
|
14
|
+
require 'sensu-handler'
|
15
|
+
require 'aws/ses'
|
16
|
+
require 'timeout'
|
17
|
+
|
18
|
+
class Mailer < Sensu::Handler
|
19
|
+
def short_name
|
20
|
+
@event['client']['name'] + '/' + @event['check']['name']
|
21
|
+
end
|
22
|
+
|
23
|
+
def action_to_string
|
24
|
+
@event['action'].eql?('resolve') ? 'RESOLVED' : 'ALERT'
|
25
|
+
end
|
26
|
+
|
27
|
+
def handle
|
28
|
+
params = {
|
29
|
+
mail_to: settings['mailer-ses']['mail_to'],
|
30
|
+
mail_from: settings['mailer-ses']['mail_from'],
|
31
|
+
aws_access_key: settings['mailer-ses']['aws_access_key'],
|
32
|
+
aws_secret_key: settings['mailer-ses']['aws_secret_key'],
|
33
|
+
aws_ses_endpoint: settings['mailer-ses']['aws_ses_endpoint']
|
34
|
+
}
|
35
|
+
|
36
|
+
body = <<-BODY.gsub(/^ {14}/, '')
|
37
|
+
#{@event['check']['output']}
|
38
|
+
Host: #{@event['client']['name']}
|
39
|
+
Timestamp: #{Time.at(@event['check']['issued'])}
|
40
|
+
Address: #{@event['client']['address']}
|
41
|
+
Check Name: #{@event['check']['name']}
|
42
|
+
Command: #{@event['check']['command']}
|
43
|
+
Status: #{@event['check']['status']}
|
44
|
+
Occurrences: #{@event['occurrences']}
|
45
|
+
BODY
|
46
|
+
subject = "#{action_to_string} - #{short_name}: #{@event['check']['notification']}"
|
47
|
+
|
48
|
+
ses = AWS::SES::Base.new(
|
49
|
+
access_key_id: params[:aws_access_key],
|
50
|
+
secret_access_key: params[:aws_secret_key],
|
51
|
+
server: params[:aws_ses_endpoint]
|
52
|
+
)
|
53
|
+
|
54
|
+
begin
|
55
|
+
timeout 10 do
|
56
|
+
ses.send_email(
|
57
|
+
to: params[:mail_to],
|
58
|
+
source: params[:mail_from],
|
59
|
+
subject: subject,
|
60
|
+
text_body: body
|
61
|
+
)
|
62
|
+
|
63
|
+
puts 'mail -- sent alert for ' + short_name + ' to ' + params[:mail_to]
|
64
|
+
end
|
65
|
+
rescue Timeout::Error
|
66
|
+
puts 'mail -- timed out while attempting to ' + @event['action'] + ' an incident -- ' + short_name
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,151 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Sensu Handler: mailer
|
4
|
+
#
|
5
|
+
# This handler formats alerts as mails and sends them off to a pre-defined recipient.
|
6
|
+
#
|
7
|
+
# Copyright 2012 Pal-Kristian Hamre (https://github.com/pkhamre | http://twitter.com/pkhamre)
|
8
|
+
#
|
9
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
10
|
+
# for details.
|
11
|
+
|
12
|
+
# Note: The default mailer config is fetched from the predefined json config file which is "mailer.json" or any other
|
13
|
+
# file defiend using the "json_config" command line option. The mailing list could also be configured on a per client basis
|
14
|
+
# by defining the "mail_to" attribute in the client config file. This will override the default mailing list where the
|
15
|
+
# alerts are being routed to for that particular client.
|
16
|
+
|
17
|
+
require 'sensu-handler'
|
18
|
+
require 'mail'
|
19
|
+
require 'timeout'
|
20
|
+
|
21
|
+
# patch to fix Exim delivery_method: https://github.com/mikel/mail/pull/546
|
22
|
+
# #YELLOW
|
23
|
+
module ::Mail # rubocop:disable Style/ClassAndModuleChildren
|
24
|
+
class Exim < Sendmail
|
25
|
+
def self.call(path, arguments, _destinations, encoded_message)
|
26
|
+
popen "#{path} #{arguments}" do |io|
|
27
|
+
io.puts encoded_message.to_lf
|
28
|
+
io.flush
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
class Mailer < Sensu::Handler
|
35
|
+
option :json_config,
|
36
|
+
description: 'Config Name',
|
37
|
+
short: '-j JsonConfig',
|
38
|
+
long: '--json_config JsonConfig',
|
39
|
+
required: false
|
40
|
+
|
41
|
+
def short_name
|
42
|
+
@event['client']['name'] + '/' + @event['check']['name']
|
43
|
+
end
|
44
|
+
|
45
|
+
def action_to_string
|
46
|
+
@event['action'].eql?('resolve') ? 'RESOLVED' : 'ALERT'
|
47
|
+
end
|
48
|
+
|
49
|
+
def status_to_string
|
50
|
+
case @event['check']['status']
|
51
|
+
when 0
|
52
|
+
'OK'
|
53
|
+
when 1
|
54
|
+
'WARNING'
|
55
|
+
when 2
|
56
|
+
'CRITICAL'
|
57
|
+
else
|
58
|
+
'UNKNOWN'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def build_mail_to_list
|
63
|
+
json_config = config[:json_config] || 'mailer'
|
64
|
+
mail_to = @event['client']['mail_to'] || settings[json_config]['mail_to']
|
65
|
+
if settings[json_config].key?('subscriptions')
|
66
|
+
@event['check']['subscribers'].each do |sub|
|
67
|
+
if settings[json_config]['subscriptions'].key?(sub)
|
68
|
+
mail_to << ", #{settings[json_config]['subscriptions'][sub]['mail_to']}"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
mail_to
|
73
|
+
end
|
74
|
+
|
75
|
+
def handle # rubocop:disable all
|
76
|
+
json_config = config[:json_config] || 'mailer'
|
77
|
+
admin_gui = settings[json_config]['admin_gui'] || 'http://localhost:8080/'
|
78
|
+
mail_to = build_mail_to_list
|
79
|
+
mail_from = settings[json_config]['mail_from']
|
80
|
+
reply_to = settings[json_config]['reply_to'] || mail_from
|
81
|
+
|
82
|
+
delivery_method = settings[json_config]['delivery_method'] || 'smtp'
|
83
|
+
smtp_address = settings[json_config]['smtp_address'] || 'localhost'
|
84
|
+
smtp_port = settings[json_config]['smtp_port'] || '25'
|
85
|
+
smtp_domain = settings[json_config]['smtp_domain'] || 'localhost.localdomain'
|
86
|
+
|
87
|
+
smtp_username = settings[json_config]['smtp_username'] || nil
|
88
|
+
smtp_password = settings[json_config]['smtp_password'] || nil
|
89
|
+
smtp_authentication = settings[json_config]['smtp_authentication'] || :plain
|
90
|
+
smtp_enable_starttls_auto = settings[json_config]['smtp_enable_starttls_auto'] == 'false' ? false : true
|
91
|
+
# try to redact passwords from output and command
|
92
|
+
output = "#{@event['check']['output']}".gsub(/(-p|-P|--password)\s*\S+/, '\1 <password redacted>')
|
93
|
+
command = "#{@event['check']['command']}".gsub(/(-p|-P|--password)\s*\S+/, '\1 <password redacted>')
|
94
|
+
|
95
|
+
playbook = "Playbook: #{@event['check']['playbook']}" if @event['check']['playbook']
|
96
|
+
body = <<-BODY.gsub(/^\s+/, '')
|
97
|
+
#{output}
|
98
|
+
Admin GUI: #{admin_gui}
|
99
|
+
Host: #{@event['client']['name']}
|
100
|
+
Timestamp: #{Time.at(@event['check']['issued'])}
|
101
|
+
Address: #{@event['client']['address']}
|
102
|
+
Check Name: #{@event['check']['name']}
|
103
|
+
Command: #{command}
|
104
|
+
Status: #{status_to_string}
|
105
|
+
Occurrences: #{@event['occurrences']}
|
106
|
+
#{playbook}
|
107
|
+
BODY
|
108
|
+
if @event['check']['notification'].nil?
|
109
|
+
subject = "#{action_to_string} - #{short_name}: #{status_to_string}"
|
110
|
+
else
|
111
|
+
subject = "#{action_to_string} - #{short_name}: #{@event['check']['notification']}"
|
112
|
+
end
|
113
|
+
|
114
|
+
Mail.defaults do
|
115
|
+
delivery_options = {
|
116
|
+
address: smtp_address,
|
117
|
+
port: smtp_port,
|
118
|
+
domain: smtp_domain,
|
119
|
+
openssl_verify_mode: 'none',
|
120
|
+
enable_starttls_auto: smtp_enable_starttls_auto
|
121
|
+
}
|
122
|
+
|
123
|
+
unless smtp_username.nil?
|
124
|
+
auth_options = {
|
125
|
+
user_name: smtp_username,
|
126
|
+
password: smtp_password,
|
127
|
+
authentication: smtp_authentication
|
128
|
+
}
|
129
|
+
delivery_options.merge! auth_options
|
130
|
+
end
|
131
|
+
|
132
|
+
delivery_method delivery_method.intern, delivery_options
|
133
|
+
end
|
134
|
+
|
135
|
+
begin
|
136
|
+
timeout 10 do
|
137
|
+
Mail.deliver do
|
138
|
+
to mail_to
|
139
|
+
from mail_from
|
140
|
+
reply_to reply_to
|
141
|
+
subject subject
|
142
|
+
body body
|
143
|
+
end
|
144
|
+
|
145
|
+
puts 'mail -- sent alert for ' + short_name + ' to ' + mail_to.to_s
|
146
|
+
end
|
147
|
+
rescue Timeout::Error
|
148
|
+
puts 'mail -- timed out while attempting to ' + @event['action'] + ' an incident -- ' + short_name
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'sensu-plugins-mailer/version'
|
metadata
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sensu-plugins-mailer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sensu-Plugins and contributors
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
|
14
|
+
am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
|
15
|
+
A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
|
16
|
+
CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
|
17
|
+
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
|
18
|
+
CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
|
19
|
+
zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
|
20
|
+
qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
|
21
|
+
k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
|
22
|
+
oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
|
23
|
+
0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
24
|
+
HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
|
25
|
+
QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
|
26
|
+
MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
|
27
|
+
rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
|
28
|
+
UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
|
29
|
+
JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
|
30
|
+
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
|
+
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
34
|
+
dependencies:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: sensu-plugin
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.1.0
|
42
|
+
type: :runtime
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.1.0
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: mailgun
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.8'
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.8'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: mail
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.6.3
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.6.3
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: aws
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 2.10.2
|
84
|
+
type: :runtime
|
85
|
+
prerelease: false
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.10.2
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: codeclimate-test-reporter
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0.4'
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.4'
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rubocop
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0.30'
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0.30'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: rspec
|
121
|
+
requirement: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '3.1'
|
126
|
+
type: :development
|
127
|
+
prerelease: false
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '3.1'
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: bundler
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.7'
|
140
|
+
type: :development
|
141
|
+
prerelease: false
|
142
|
+
version_requirements: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '1.7'
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: rake
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '10.0'
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '10.0'
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: github-markup
|
163
|
+
requirement: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - "~>"
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '1.3'
|
168
|
+
type: :development
|
169
|
+
prerelease: false
|
170
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - "~>"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '1.3'
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: redcarpet
|
177
|
+
requirement: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - "~>"
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '3.2'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - "~>"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '3.2'
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: yard
|
191
|
+
requirement: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - "~>"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0.8'
|
196
|
+
type: :development
|
197
|
+
prerelease: false
|
198
|
+
version_requirements: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - "~>"
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0.8'
|
203
|
+
- !ruby/object:Gem::Dependency
|
204
|
+
name: pry
|
205
|
+
requirement: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - "~>"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0.10'
|
210
|
+
type: :development
|
211
|
+
prerelease: false
|
212
|
+
version_requirements: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - "~>"
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0.10'
|
217
|
+
description: Sensu mailer plugins
|
218
|
+
email: "<sensu-users@googlegroups.com>"
|
219
|
+
executables:
|
220
|
+
- handler-mailer.rb
|
221
|
+
- handler-mailer-ses.rb
|
222
|
+
- handler-mailer-mailgun.rb
|
223
|
+
extensions: []
|
224
|
+
extra_rdoc_files: []
|
225
|
+
files:
|
226
|
+
- CHANGELOG.md
|
227
|
+
- LICENSE
|
228
|
+
- README.md
|
229
|
+
- bin/handler-mailer-mailgun.rb
|
230
|
+
- bin/handler-mailer-ses.rb
|
231
|
+
- bin/handler-mailer.rb
|
232
|
+
- lib/sensu-plugins-mailer.rb
|
233
|
+
- lib/sensu-plugins-mailer/version.rb
|
234
|
+
homepage: https://github.com/sensu-plugins/sensu-plugins-mailer
|
235
|
+
licenses:
|
236
|
+
- MIT
|
237
|
+
metadata:
|
238
|
+
maintainer: sensu-plugin
|
239
|
+
development_status: active
|
240
|
+
production_status: unstable - testing recommended
|
241
|
+
release_draft: 'false'
|
242
|
+
release_prerelease: 'false'
|
243
|
+
post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
|
244
|
+
in /etc/default/sensu
|
245
|
+
rdoc_options: []
|
246
|
+
require_paths:
|
247
|
+
- lib
|
248
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
249
|
+
requirements:
|
250
|
+
- - ">="
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: 1.9.3
|
253
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
requirements: []
|
259
|
+
rubyforge_project:
|
260
|
+
rubygems_version: 2.4.6
|
261
|
+
signing_key:
|
262
|
+
specification_version: 4
|
263
|
+
summary: Sensu plugins for mailer
|
264
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|