sensu-plugins-snmptrap-extension 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -3
- data/bin/extension-snmptrap.rb +7 -0
- data/lib/sensu-plugins-snmptrap-extension/version.rb +2 -2
- metadata +69 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34843c256b65b90be2a9c032c4ed9983924dce96
|
4
|
+
data.tar.gz: 9cfd895d6ebbf9ce7c7424cd2d441583987bc149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d553e1a46207e7f0cb7ae29d8973a3b175472c51f7556a95648591d772e5920493b1213d9f9ba132d78b9c2bacee03202b93e49343b1caf174ff33439cbbc03b
|
7
|
+
data.tar.gz: fe5ef18adaed93241875e101d044c825c90825f708aec15499da39435c0c549e65b32abb87cc019162a333cbf41ca411afd51afb7e96ba2879de39d6e1ae8ef6
|
data/CHANGELOG.md
CHANGED
@@ -3,10 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## [
|
7
|
-
### Added
|
6
|
+
## [0.3.0] - 2016-11-17
|
8
7
|
|
9
|
-
###
|
8
|
+
### Fixed
|
9
|
+
- [\#5](https://github.com/warmfusion/sensu-extension-snmptrap/pull/5) - SNMP Trap template values were not getting replaced properly - Thanks [@dhassett-tr](https://github.com/dhassett-tr)!
|
10
|
+
- [\#6](https://github.com/warmfusion/sensu-extension-snmptrap/pull/6) - Fix Travis builds by restricting upper range for certain dependencies
|
10
11
|
|
11
12
|
## [0.2.1] - 2016-06-04
|
12
13
|
### Changed
|
data/bin/extension-snmptrap.rb
CHANGED
@@ -184,6 +184,10 @@ module Sensu
|
|
184
184
|
|
185
185
|
private
|
186
186
|
|
187
|
+
def deep_copy(o)
|
188
|
+
Marshal.load(Marshal.dump(o))
|
189
|
+
end
|
190
|
+
|
187
191
|
# Doesn't appear to be possible to ping Sensu directly for async event triggering
|
188
192
|
# even though we're inside Sensu right now...
|
189
193
|
def publish_check_result(check)
|
@@ -204,6 +208,9 @@ module Sensu
|
|
204
208
|
end
|
205
209
|
|
206
210
|
def process_v2c_trap(trap, trapdef)
|
211
|
+
# deep_copy trapdef hash, as we mutate it later
|
212
|
+
trapdef = deep_copy(trapdef)
|
213
|
+
|
207
214
|
hostname = trap.source_ip
|
208
215
|
begin
|
209
216
|
hostname = Resolv.getname(trap.source_ip)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-snmptrap-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Jackson
|
@@ -10,20 +10,20 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain:
|
12
12
|
- certs/sensu-plugins.pem
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: snmp
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 1.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 1.2.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
@@ -40,116 +40,94 @@ dependencies:
|
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.2.0
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: net
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - '>='
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0'
|
50
|
-
type: :runtime
|
51
|
-
prerelease: false
|
52
|
-
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - '>='
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0'
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: json
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - '>='
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '0'
|
64
|
-
type: :runtime
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - '>='
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
71
43
|
- !ruby/object:Gem::Dependency
|
72
44
|
name: bundler
|
73
45
|
requirement: !ruby/object:Gem::Requirement
|
74
46
|
requirements:
|
75
|
-
- - ~>
|
47
|
+
- - "~>"
|
76
48
|
- !ruby/object:Gem::Version
|
77
49
|
version: '1.7'
|
78
50
|
type: :development
|
79
51
|
prerelease: false
|
80
52
|
version_requirements: !ruby/object:Gem::Requirement
|
81
53
|
requirements:
|
82
|
-
- - ~>
|
54
|
+
- - "~>"
|
83
55
|
- !ruby/object:Gem::Version
|
84
56
|
version: '1.7'
|
85
57
|
- !ruby/object:Gem::Dependency
|
86
58
|
name: codeclimate-test-reporter
|
87
59
|
requirement: !ruby/object:Gem::Requirement
|
88
60
|
requirements:
|
89
|
-
- - ~>
|
61
|
+
- - "~>"
|
90
62
|
- !ruby/object:Gem::Version
|
91
63
|
version: '0.4'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.6'
|
92
67
|
type: :development
|
93
68
|
prerelease: false
|
94
69
|
version_requirements: !ruby/object:Gem::Requirement
|
95
70
|
requirements:
|
96
|
-
- - ~>
|
71
|
+
- - "~>"
|
97
72
|
- !ruby/object:Gem::Version
|
98
73
|
version: '0.4'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.6'
|
99
77
|
- !ruby/object:Gem::Dependency
|
100
78
|
name: github-markup
|
101
79
|
requirement: !ruby/object:Gem::Requirement
|
102
80
|
requirements:
|
103
|
-
- - ~>
|
81
|
+
- - "~>"
|
104
82
|
- !ruby/object:Gem::Version
|
105
83
|
version: '1.3'
|
106
84
|
type: :development
|
107
85
|
prerelease: false
|
108
86
|
version_requirements: !ruby/object:Gem::Requirement
|
109
87
|
requirements:
|
110
|
-
- - ~>
|
88
|
+
- - "~>"
|
111
89
|
- !ruby/object:Gem::Version
|
112
90
|
version: '1.3'
|
113
91
|
- !ruby/object:Gem::Dependency
|
114
92
|
name: pry
|
115
93
|
requirement: !ruby/object:Gem::Requirement
|
116
94
|
requirements:
|
117
|
-
- - ~>
|
95
|
+
- - "~>"
|
118
96
|
- !ruby/object:Gem::Version
|
119
97
|
version: '0.10'
|
120
98
|
type: :development
|
121
99
|
prerelease: false
|
122
100
|
version_requirements: !ruby/object:Gem::Requirement
|
123
101
|
requirements:
|
124
|
-
- - ~>
|
102
|
+
- - "~>"
|
125
103
|
- !ruby/object:Gem::Version
|
126
104
|
version: '0.10'
|
127
105
|
- !ruby/object:Gem::Dependency
|
128
106
|
name: rake
|
129
107
|
requirement: !ruby/object:Gem::Requirement
|
130
108
|
requirements:
|
131
|
-
- - ~>
|
109
|
+
- - "~>"
|
132
110
|
- !ruby/object:Gem::Version
|
133
111
|
version: '10.0'
|
134
112
|
type: :development
|
135
113
|
prerelease: false
|
136
114
|
version_requirements: !ruby/object:Gem::Requirement
|
137
115
|
requirements:
|
138
|
-
- - ~>
|
116
|
+
- - "~>"
|
139
117
|
- !ruby/object:Gem::Version
|
140
118
|
version: '10.0'
|
141
119
|
- !ruby/object:Gem::Dependency
|
142
120
|
name: rspec
|
143
121
|
requirement: !ruby/object:Gem::Requirement
|
144
122
|
requirements:
|
145
|
-
- - ~>
|
123
|
+
- - "~>"
|
146
124
|
- !ruby/object:Gem::Version
|
147
125
|
version: '3.1'
|
148
126
|
type: :development
|
149
127
|
prerelease: false
|
150
128
|
version_requirements: !ruby/object:Gem::Requirement
|
151
129
|
requirements:
|
152
|
-
- - ~>
|
130
|
+
- - "~>"
|
153
131
|
- !ruby/object:Gem::Version
|
154
132
|
version: '3.1'
|
155
133
|
- !ruby/object:Gem::Dependency
|
@@ -170,48 +148,82 @@ dependencies:
|
|
170
148
|
name: redcarpet
|
171
149
|
requirement: !ruby/object:Gem::Requirement
|
172
150
|
requirements:
|
173
|
-
- - ~>
|
151
|
+
- - "~>"
|
174
152
|
- !ruby/object:Gem::Version
|
175
153
|
version: '3.2'
|
176
154
|
type: :development
|
177
155
|
prerelease: false
|
178
156
|
version_requirements: !ruby/object:Gem::Requirement
|
179
157
|
requirements:
|
180
|
-
- - ~>
|
158
|
+
- - "~>"
|
181
159
|
- !ruby/object:Gem::Version
|
182
160
|
version: '3.2'
|
183
161
|
- !ruby/object:Gem::Dependency
|
184
162
|
name: yard
|
185
163
|
requirement: !ruby/object:Gem::Requirement
|
186
164
|
requirements:
|
187
|
-
- - ~>
|
165
|
+
- - "~>"
|
188
166
|
- !ruby/object:Gem::Version
|
189
167
|
version: '0.8'
|
190
168
|
type: :development
|
191
169
|
prerelease: false
|
192
170
|
version_requirements: !ruby/object:Gem::Requirement
|
193
171
|
requirements:
|
194
|
-
- - ~>
|
172
|
+
- - "~>"
|
195
173
|
- !ruby/object:Gem::Version
|
196
174
|
version: '0.8'
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: activesupport
|
177
|
+
requirement: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">"
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '4.2'
|
182
|
+
- - "<"
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '5.0'
|
185
|
+
type: :development
|
186
|
+
prerelease: false
|
187
|
+
version_requirements: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">"
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '4.2'
|
192
|
+
- - "<"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '5.0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: json
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "<"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '2.0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "<"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '2.0'
|
197
209
|
description: Sensu extension for trapping SNMP events and reemiting as templated events
|
198
|
-
email: <toby@warmfusion.co.uk>
|
210
|
+
email: "<toby@warmfusion.co.uk>"
|
199
211
|
executables:
|
200
212
|
- extension-snmptrap.rb
|
201
213
|
extensions: []
|
202
214
|
extra_rdoc_files: []
|
203
215
|
files:
|
204
|
-
-
|
205
|
-
- lib/sensu-plugins-snmptrap-extension/version.rb
|
206
|
-
- lib/sensu-plugins-snmptrap-extension.rb
|
216
|
+
- CHANGELOG.md
|
207
217
|
- LICENSE
|
208
218
|
- README.md
|
209
|
-
-
|
219
|
+
- bin/extension-snmptrap.rb
|
220
|
+
- lib/sensu-plugins-snmptrap-extension.rb
|
221
|
+
- lib/sensu-plugins-snmptrap-extension/version.rb
|
210
222
|
homepage: https://github.com/warmfusion/sensu-extension-snmptrap
|
211
223
|
licenses:
|
212
224
|
- MIT
|
213
225
|
metadata:
|
214
|
-
maintainer:
|
226
|
+
maintainer: "@warmfusion"
|
215
227
|
development_status: active
|
216
228
|
production_status: unstable - testing recommended
|
217
229
|
release_draft: 'false'
|
@@ -223,17 +235,17 @@ require_paths:
|
|
223
235
|
- lib
|
224
236
|
required_ruby_version: !ruby/object:Gem::Requirement
|
225
237
|
requirements:
|
226
|
-
- -
|
238
|
+
- - ">="
|
227
239
|
- !ruby/object:Gem::Version
|
228
240
|
version: 1.9.3
|
229
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
242
|
requirements:
|
231
|
-
- -
|
243
|
+
- - ">="
|
232
244
|
- !ruby/object:Gem::Version
|
233
245
|
version: '0'
|
234
246
|
requirements: []
|
235
247
|
rubyforge_project:
|
236
|
-
rubygems_version: 2.
|
248
|
+
rubygems_version: 2.5.1
|
237
249
|
signing_key:
|
238
250
|
specification_version: 4
|
239
251
|
summary: Sensu extension to capture SNMP trap events
|