sensu-plugins-splunk 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -3
- data/README.md +2 -5
- data/bin/handler-splunkstorm.rb +5 -6
- data/lib/sensu-plugins-splunk/version.rb +2 -2
- metadata +15 -37
- checksums.yaml.gz.sig +0 -1
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dd3fe6fd8873f7dc008a5775d260a226cb960df
|
|
4
|
+
data.tar.gz: f2fc4b87dd066f5ca63901b7b0af77176b6a4e81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e8fcbc52c9129a0fd7e98d61c7740140c145fbb0e5106a49885018c204bc922ca7cbae0530411c32b6be391bf1456c149c1ad7b3cbcf00f5f91140e8d5a2186
|
|
7
|
+
data.tar.gz: 9b9322848aba7985125f891328c6e3497a4cbd0565b0773378cefada11b68adaa165af6b8c7d216907f46d2b5d34890749bad3795e4e5d72954c82e8aac158e6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
#Change Log
|
|
1
|
+
# Change Log
|
|
2
2
|
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
|
-
## Unreleased]
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [1.0.0] - 2017-06-12
|
|
9
|
+
### Added
|
|
10
|
+
- Support for Ruby 2.3 and 2.4 (@eheydrick)
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
- Support for Ruby < 2 (@eheydrick)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Loosen `sensu-plugin` dependency to `~> 1.2` (@mattyjones)
|
|
17
|
+
- Update to `json` 1.8.6 for Ruby 2.4 support
|
|
7
18
|
|
|
8
19
|
## [0.0.2] - 2015-07-14
|
|
9
20
|
### Changed
|
|
10
21
|
- updated sensu-plugin gem to 1.2.0
|
|
11
22
|
|
|
12
23
|
## 0.0.1 - 2015-06-04
|
|
13
|
-
|
|
14
24
|
### Added
|
|
15
25
|
- initial release
|
|
16
26
|
|
|
27
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-splunk/compare/1.0.0...HEAD
|
|
28
|
+
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-splunk/compare/0.0.2...1.0.0
|
|
29
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-splunk/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
## Sensu-Plugins-splunk
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[](https://travis-ci.org/sensu-plugins/sensu-plugins-splunk)
|
|
4
4
|
[](http://badge.fury.io/rb/sensu-plugins-splunk)
|
|
5
|
-
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-splunk)
|
|
6
|
-
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-splunk)
|
|
7
5
|
[](https://gemnasium.com/sensu-plugins/sensu-plugins-splunk)
|
|
8
|
-
[ ](https://codeship.com/projects/83064)
|
|
9
6
|
|
|
10
7
|
## Functionality
|
|
11
8
|
|
|
@@ -25,6 +22,6 @@
|
|
|
25
22
|
|
|
26
23
|
## Installation
|
|
27
24
|
|
|
28
|
-
[Installation and Setup](
|
|
25
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
|
29
26
|
|
|
30
27
|
## Notes
|
data/bin/handler-splunkstorm.rb
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
require 'rest-client'
|
|
13
13
|
require 'json'
|
|
14
14
|
|
|
15
|
-
API_HOST = 'api.splunkstorm.com'
|
|
15
|
+
API_HOST = 'api.splunkstorm.com'.freeze
|
|
16
16
|
API_VERSION = 1
|
|
17
|
-
API_ENDPOINT = 'inputs/http'
|
|
18
|
-
URL_SCHEME = 'https'
|
|
17
|
+
API_ENDPOINT = 'inputs/http'.freeze
|
|
18
|
+
URL_SCHEME = 'https'.freeze
|
|
19
19
|
|
|
20
20
|
module Sensu
|
|
21
21
|
class Handler
|
|
@@ -30,8 +30,7 @@ module Sensu
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def filter
|
|
33
|
-
|
|
34
|
-
if @event['check']['alert'] == false # rubocop:disable GuardClause
|
|
33
|
+
if @event['check']['alert'] == false
|
|
35
34
|
puts 'alert disabled -- filtered event ' + [@event['client']['name'], @event['check']['name']].join(' : ')
|
|
36
35
|
exit 0
|
|
37
36
|
end
|
|
@@ -40,7 +39,7 @@ module Sensu
|
|
|
40
39
|
def alert
|
|
41
40
|
refresh = (60.fdiv(@event['check']['interval']) * 30).to_i
|
|
42
41
|
# #YELLOW
|
|
43
|
-
if @event['occurrences'] == 1 || @event['occurrences'] % refresh == 0
|
|
42
|
+
if @event['occurrences'] == 1 || @event['occurrences'] % refresh == 0 # rubocop:disable GuardClause
|
|
44
43
|
splunkstorm
|
|
45
44
|
end
|
|
46
45
|
end
|
metadata
CHANGED
|
@@ -1,65 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-splunk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 1.0.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
|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HO8
|
|
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-07-14 00:00:00.000000000 Z
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
|
34
12
|
dependencies:
|
|
35
13
|
- !ruby/object:Gem::Dependency
|
|
36
14
|
name: sensu-plugin
|
|
37
15
|
requirement: !ruby/object:Gem::Requirement
|
|
38
16
|
requirements:
|
|
39
|
-
- -
|
|
17
|
+
- - "~>"
|
|
40
18
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 1.2
|
|
19
|
+
version: '1.2'
|
|
42
20
|
type: :runtime
|
|
43
21
|
prerelease: false
|
|
44
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
45
23
|
requirements:
|
|
46
|
-
- -
|
|
24
|
+
- - "~>"
|
|
47
25
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: 1.2
|
|
26
|
+
version: '1.2'
|
|
49
27
|
- !ruby/object:Gem::Dependency
|
|
50
28
|
name: json
|
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
|
52
30
|
requirements:
|
|
53
31
|
- - '='
|
|
54
32
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 1.8.
|
|
33
|
+
version: 1.8.6
|
|
56
34
|
type: :runtime
|
|
57
35
|
prerelease: false
|
|
58
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
37
|
requirements:
|
|
60
38
|
- - '='
|
|
61
39
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: 1.8.
|
|
40
|
+
version: 1.8.6
|
|
63
41
|
- !ruby/object:Gem::Dependency
|
|
64
42
|
name: rest-client
|
|
65
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,16 +70,16 @@ dependencies:
|
|
|
92
70
|
name: rubocop
|
|
93
71
|
requirement: !ruby/object:Gem::Requirement
|
|
94
72
|
requirements:
|
|
95
|
-
- -
|
|
73
|
+
- - "~>"
|
|
96
74
|
- !ruby/object:Gem::Version
|
|
97
|
-
version:
|
|
75
|
+
version: 0.40.0
|
|
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
|
-
version:
|
|
82
|
+
version: 0.40.0
|
|
105
83
|
- !ruby/object:Gem::Dependency
|
|
106
84
|
name: rspec
|
|
107
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -231,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
231
209
|
requirements:
|
|
232
210
|
- - ">="
|
|
233
211
|
- !ruby/object:Gem::Version
|
|
234
|
-
version:
|
|
212
|
+
version: 2.0.0
|
|
235
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
214
|
requirements:
|
|
237
215
|
- - ">="
|
|
@@ -239,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
239
217
|
version: '0'
|
|
240
218
|
requirements: []
|
|
241
219
|
rubyforge_project:
|
|
242
|
-
rubygems_version: 2.4.
|
|
220
|
+
rubygems_version: 2.4.5
|
|
243
221
|
signing_key:
|
|
244
222
|
specification_version: 4
|
|
245
223
|
summary: Sensu plugins for splunk
|
checksums.yaml.gz.sig
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ʩ��<��Ch�w��g��X�i�^�m�Y��%���p��V���AK�3B��=���� J�$r� �"�0E��ڢ��qlþ���q-:���fPA�N��Rn�G�5P�j�P�RgF3��Eߵ� ���k5lɿ+�1���H\��a��dM$�6[^��k�N��SS�\C��eB<T�KJ��(i/�U�����`赓8p�6�N�2�so��Lq������e�~��2�PS���Z-
|
data.tar.gz.sig
DELETED
|
Binary file
|
metadata.gz.sig
DELETED
|
Binary file
|