sensu-plugins-logstash 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ebb0292ff477dba907b3d5420f5e44833284a009
4
- data.tar.gz: 700fe416b644132b69a06e4ae93b903305f22ac7
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YzFjN2QzOWE5NTM3MDdjZmExNTI3MDIzY2NlZTNlMDJhZjFhNDI1Zg==
5
+ data.tar.gz: !binary |-
6
+ YWM2ODAwYmQ2ZTI1MzVmODQ2MGNkNWJmYzJkMTRkZmI5N2RiYmM2Ng==
5
7
  SHA512:
6
- metadata.gz: 6f01a591f1659fe9c2c040c9e9d5a1d333de6bbd56af757b8eefc1e5606e985bb818e9e60e69256433dc00891ff2cd414b5c20714e25f517d1d6907868368aaa
7
- data.tar.gz: f34734d33741a5ef5f2362b63bb9aaab22066d5e1bd5ca3ee996e6db5587a273e9dae95b63ae90e007604c7024a93e2be062383573f497c438415155cb3632fb
8
+ metadata.gz: !binary |-
9
+ ZWU0OWRlNDI5ODRmZDE0OTYwNTdkNTBlODhhZTU1YjY2ZjdhZTgwN2RjNDZi
10
+ NGI5MjgzZTgzYmExZGZmNGQ5YmQxNjA4ZDA2OGIwMjYwNzc4OGMzMGEwZmY0
11
+ MDM2NTZmOTk5NmE1ZjZhMTQ2MGM1NTY0NzgwOWM2MmY5MzcyMjg=
12
+ data.tar.gz: !binary |-
13
+ M2Q3YTBkZmYzYjY0MDE1N2ZiMWI2YTMxMmEyNGE2MmIyMDU0NDZhOWE0OWI2
14
+ YTI4ZGFjZWZlMDNhZDdhMjBiYjJiYWI5Mjg1MDJiMjZjOWFiYmEwZTJmYTNh
15
+ NGQ0YWVkMjAxYTVmZjI4YTljOWY5ZTQzMTRiYWFhOTMwYzVjZjg=
@@ -4,7 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
- - nothing
7
+
8
+ ## [0.1.0] - 2016-08-10
9
+ - changed sensu-plugin dependecy from `= 1.2.0` to `~> 1.2`
10
+ - added TCP socket as an output option
8
11
 
9
12
  ## [0.0.4] - 2015-09-29
10
13
  - fixed JSON generation for UDP in handler-logstash.rb
@@ -19,6 +22,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
19
22
  - updated sensu-plugin gem to 1.2.0
20
23
 
21
24
  ## 0.0.1 - 2015-05-29
22
-
23
25
  ### Added
24
26
  - initial release
27
+
28
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-logstash/compare/0.1.0...HEAD
29
+ [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-logstash/compare/0.0.4...0.1.0
30
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-logstash/compare/0.0.3...0.0.4
31
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-logstash/compare/0.0.2...0.0.3
32
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-logstash/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -5,7 +5,6 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-logstash.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-logstash)
8
- [![Codeship Status for sensu-plugins/sensu-plugins-logstash](https://codeship.com/projects/a27fccf0-db96-0132-cb23-0eed4ec53b27/status?branch=master)](https://codeship.com/projects/79668)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -26,6 +25,9 @@
26
25
  }
27
26
  }
28
27
  ```
28
+
29
+ Supported output types: `redis`, `tcp`, `udp`
30
+
29
31
  ## Installation
30
32
 
31
33
  [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
@@ -89,6 +89,10 @@ class LogstashHandler < Sensu::Handler
89
89
  socket = UDPSocket.new
90
90
  socket.send(JSON.generate(logstash_msg), 0, settings['logstash']['server'], settings['logstash']['port'])
91
91
  socket.close
92
+ when 'tcp'
93
+ socket = TCPSocket.new(settings['logstash']['server'], settings['logstash']['port'])
94
+ socket.puts(JSON.generate(logstash_msg))
95
+ socket.close
92
96
  end
93
97
  end
94
98
  end
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsLogstash
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 0
5
- PATCH = 4
4
+ MINOR = 1
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-logstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
8
8
  autorequire:
9
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-09-29 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-08-10 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: json
@@ -64,147 +42,146 @@ dependencies:
64
42
  name: sensu-plugin
65
43
  requirement: !ruby/object:Gem::Requirement
66
44
  requirements:
67
- - - '='
45
+ - - ~>
68
46
  - !ruby/object:Gem::Version
69
- version: 1.2.0
47
+ version: '1.2'
70
48
  type: :runtime
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
51
  requirements:
74
- - - '='
52
+ - - ~>
75
53
  - !ruby/object:Gem::Version
76
- version: 1.2.0
54
+ version: '1.2'
77
55
  - !ruby/object:Gem::Dependency
78
56
  name: bundler
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - "~>"
59
+ - - ~>
82
60
  - !ruby/object:Gem::Version
83
61
  version: '1.7'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - "~>"
66
+ - - ~>
89
67
  - !ruby/object:Gem::Version
90
68
  version: '1.7'
91
69
  - !ruby/object:Gem::Dependency
92
70
  name: codeclimate-test-reporter
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
- - - "~>"
73
+ - - ~>
96
74
  - !ruby/object:Gem::Version
97
75
  version: '0.4'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
- - - "~>"
80
+ - - ~>
103
81
  - !ruby/object:Gem::Version
104
82
  version: '0.4'
105
83
  - !ruby/object:Gem::Dependency
106
84
  name: github-markup
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
- - - "~>"
87
+ - - ~>
110
88
  - !ruby/object:Gem::Version
111
89
  version: '1.3'
112
90
  type: :development
113
91
  prerelease: false
114
92
  version_requirements: !ruby/object:Gem::Requirement
115
93
  requirements:
116
- - - "~>"
94
+ - - ~>
117
95
  - !ruby/object:Gem::Version
118
96
  version: '1.3'
119
97
  - !ruby/object:Gem::Dependency
120
98
  name: pry
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
- - - "~>"
101
+ - - ~>
124
102
  - !ruby/object:Gem::Version
125
103
  version: '0.10'
126
104
  type: :development
127
105
  prerelease: false
128
106
  version_requirements: !ruby/object:Gem::Requirement
129
107
  requirements:
130
- - - "~>"
108
+ - - ~>
131
109
  - !ruby/object:Gem::Version
132
110
  version: '0.10'
133
111
  - !ruby/object:Gem::Dependency
134
112
  name: rake
135
113
  requirement: !ruby/object:Gem::Requirement
136
114
  requirements:
137
- - - "~>"
115
+ - - ~>
138
116
  - !ruby/object:Gem::Version
139
117
  version: '10.0'
140
118
  type: :development
141
119
  prerelease: false
142
120
  version_requirements: !ruby/object:Gem::Requirement
143
121
  requirements:
144
- - - "~>"
122
+ - - ~>
145
123
  - !ruby/object:Gem::Version
146
124
  version: '10.0'
147
125
  - !ruby/object:Gem::Dependency
148
126
  name: redcarpet
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
- - - "~>"
129
+ - - ~>
152
130
  - !ruby/object:Gem::Version
153
131
  version: '3.2'
154
132
  type: :development
155
133
  prerelease: false
156
134
  version_requirements: !ruby/object:Gem::Requirement
157
135
  requirements:
158
- - - "~>"
136
+ - - ~>
159
137
  - !ruby/object:Gem::Version
160
138
  version: '3.2'
161
139
  - !ruby/object:Gem::Dependency
162
140
  name: rubocop
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
- - - '='
143
+ - - ~>
166
144
  - !ruby/object:Gem::Version
167
- version: 0.32.1
145
+ version: 0.40.0
168
146
  type: :development
169
147
  prerelease: false
170
148
  version_requirements: !ruby/object:Gem::Requirement
171
149
  requirements:
172
- - - '='
150
+ - - ~>
173
151
  - !ruby/object:Gem::Version
174
- version: 0.32.1
152
+ version: 0.40.0
175
153
  - !ruby/object:Gem::Dependency
176
154
  name: rspec
177
155
  requirement: !ruby/object:Gem::Requirement
178
156
  requirements:
179
- - - "~>"
157
+ - - ~>
180
158
  - !ruby/object:Gem::Version
181
159
  version: '3.1'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
163
  requirements:
186
- - - "~>"
164
+ - - ~>
187
165
  - !ruby/object:Gem::Version
188
166
  version: '3.1'
189
167
  - !ruby/object:Gem::Dependency
190
168
  name: yard
191
169
  requirement: !ruby/object:Gem::Requirement
192
170
  requirements:
193
- - - "~>"
171
+ - - ~>
194
172
  - !ruby/object:Gem::Version
195
173
  version: '0.8'
196
174
  type: :development
197
175
  prerelease: false
198
176
  version_requirements: !ruby/object:Gem::Requirement
199
177
  requirements:
200
- - - "~>"
178
+ - - ~>
201
179
  - !ruby/object:Gem::Version
202
180
  version: '0.8'
203
- description: |-
204
- This plugin provides native logstash instrumentation
205
- for monitoring, including: a handler for sending events
206
- to logstash
207
- email: "<sensu-users@googlegroups.com>"
181
+ description: ! "This plugin provides native logstash instrumentation\n for
182
+ monitoring, including: a handler for sending events\n to
183
+ logstash."
184
+ email: <sensu-users@googlegroups.com>
208
185
  executables:
209
186
  - handler-logstash.rb
210
187
  extensions: []
@@ -220,7 +197,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-logstash
220
197
  licenses:
221
198
  - MIT
222
199
  metadata:
223
- maintainer: "@mattyjones"
200
+ maintainer: ! '@mattyjones'
224
201
  development_status: active
225
202
  production_status: unstable - testing recommended
226
203
  release_draft: 'false'
@@ -232,17 +209,17 @@ require_paths:
232
209
  - lib
233
210
  required_ruby_version: !ruby/object:Gem::Requirement
234
211
  requirements:
235
- - - ">="
212
+ - - ! '>='
236
213
  - !ruby/object:Gem::Version
237
214
  version: 1.9.3
238
215
  required_rubygems_version: !ruby/object:Gem::Requirement
239
216
  requirements:
240
- - - ">="
217
+ - - ! '>='
241
218
  - !ruby/object:Gem::Version
242
219
  version: '0'
243
220
  requirements: []
244
221
  rubyforge_project:
245
- rubygems_version: 2.4.8
222
+ rubygems_version: 2.4.5
246
223
  signing_key:
247
224
  specification_version: 4
248
225
  summary: Sensu plugins for working with logstash
@@ -1,3 +0,0 @@
1
- h�B��w{��_k8]"�0ę=Z� Ey�Av3%���6���O�aT��z���ie��L��������,p.�{n_E��0bLK������g�*���n!usVr��VY����K Mo�
2
- WTx�q
3
- D[���#�s�idM1,|�&dl���`b�gÓ,&G��"p�1H�2�z�JP���B_�d�y�ް�T6�UQ���׈���Υ�(P7��]b�?��'v3f^��H3D~�_�b�hh���*���y|%�@�x
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- _BW7+.ߓMJ\�Z;!ۈ�],
2
- �v�+yX���Ἐ�S}�6+� X)����S��l�O"f�Bp8��w������E�"H��L�}7�)�
3
- ��/>�+Y�x[ �^�a[��`#�d������=�1[ki�S <��J�3�q�$��9G-"�kx�޴g8c�ݹ̯v��"n�:��@),�@����lD�5SY�C�D�����7�6A�w�?��RaDb90�&�Rv�B��~w�Cg�b#���