sensu 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd7b102ebf9542da1c8e67721efb465c978f3978
4
- data.tar.gz: '0950ca2940859b00064f57c3aea3ec52d37df446'
3
+ metadata.gz: e06804080691f74362fb4f3fa82669f7cebd2313
4
+ data.tar.gz: 29276e26491874af79bd64dde0eeca699d60351e
5
5
  SHA512:
6
- metadata.gz: 0c702e3136fa2c612b8f1b8d297de375ea0f3487f029485364915ea1fb43685ead29bc06114e3e3571d0b5781764b0ae89d42df49ecf86d448aa37996eae5364
7
- data.tar.gz: 0451e6005668651a87f14eed8b7baa22300f7dd14d1ad37ad77c73fa5648b158044bd6c5b1e24cd3398728e1d8123d2fcbcb88e79670f9f27e16a78c66d9971c
6
+ metadata.gz: 5435dd53445d4e07672e28b724333189846fcc6a865ec6329c704964d497cf3ececd9c694bf1b0f5c7ea08bb904c9b702d49228e79217d4ae771cdd3b9eddc71
7
+ data.tar.gz: a0b53008bd16cc6cc3b0aae6b62dfb2afbfa8aaaeb37964cb3e0c41b39518016d01b0f5b2c96b1f8a07f0fd80cefb543e3118f9bb25ec111e1787a3ab511d848
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -5,6 +5,19 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.6.0] - 2018-10-12
9
+
10
+ ### Fixed
11
+ - Now using EventMachine version 1.2.7 to allow newer compiler versions to build this project.
12
+
13
+ ### Added
14
+ - Add additional sensitive information to default redaction list.
15
+ - Added API DELETE /check/:check_name that will deletes all results & history for a given check name.
16
+
17
+ ### Changed
18
+ - Replace proxy check result commands with their original definition value.
19
+ - Now using sensu-transport 8.1.0 to use separate RabbitMQ transport connections for improved flow control.
20
+
8
21
  ## [1.5.0] - 2018-09-04
9
22
 
10
23
  ### Fixed
@@ -76,6 +76,7 @@ module Sensu
76
76
  ],
77
77
  DELETE_METHOD => [
78
78
  [CLIENT_URI, :delete_client],
79
+ [CHECK_URI, :delete_check],
79
80
  [EVENT_URI, :delete_event],
80
81
  [AGGREGATE_URI, :delete_aggregate],
81
82
  [STASH_URI, :delete_stash],
@@ -22,6 +22,22 @@ module Sensu
22
22
  not_found!
23
23
  end
24
24
  end
25
+
26
+ # DELETE /checks/:check_name
27
+ def delete_check
28
+ check_name = parse_uri(CHECK_URI).first
29
+ @redis.smembers("clients") do |clients|
30
+ result_keys = clients.map {|client_name| "result:#{client_name}:#{check_name}"}
31
+ history_keys = clients.map {|client_name| "history:#{client_name}:#{check_name}"}
32
+ last_ok_keys = clients.map {|client_name| "history:#{client_name}:#{check_name}:last_ok"}
33
+ keys = result_keys.concat(history_keys).concat(last_ok_keys)
34
+ keys.each do |key|
35
+ @redis.del(key)
36
+ end
37
+ end
38
+ @response_content = {:issued => Time.now.to_i}
39
+ accepted!
40
+ end
25
41
  end
26
42
  end
27
43
  end
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "1.5.0".freeze
4
+ VERSION = "1.6.0".freeze
5
5
 
6
6
  # Sensu release information.
7
7
  RELEASE_INFO = {
@@ -1,13 +1,13 @@
1
1
  require "rubygems"
2
2
 
3
- gem "eventmachine", "1.2.5"
3
+ gem "eventmachine", "1.2.7"
4
4
 
5
5
  gem "sensu-json", "2.1.1"
6
6
  gem "sensu-logger", "1.2.2"
7
7
  gem "sensu-settings", "10.14.0"
8
8
  gem "sensu-extension", "1.5.2"
9
9
  gem "sensu-extensions", "1.10.0"
10
- gem "sensu-transport", "7.1.0"
10
+ gem "sensu-transport", "8.1.0"
11
11
  gem "sensu-spawn", "2.5.0"
12
12
  gem "sensu-redis", "2.3.0"
13
13
 
@@ -703,6 +703,9 @@ module Sensu
703
703
  end
704
704
  check[:type] ||= STANDARD_CHECK_TYPE
705
705
  check[:origin] = result[:client] if check[:source]
706
+ if @settings.check_exists?(check[:name]) && client[:type] == "proxy"
707
+ check[:command] = @settings[:checks][check[:name].to_sym][:command]
708
+ end
706
709
  aggregate_check_result(client, check) if check[:aggregates] || check[:aggregate]
707
710
  store_check_result(client, check) do
708
711
  create_event(client, check) do |event|
@@ -128,6 +128,14 @@ module Sensu
128
128
  api_key api_token
129
129
  access_key secret_key private_key
130
130
  secret
131
+ routing_key
132
+ access_token_read access_token_write access_token_path
133
+ webhook_url
134
+ nickserv_password channel_password
135
+ community
136
+ keystore_password truststore_password
137
+ proxy_password
138
+ access_key_id secret_access_key
131
139
  ]
132
140
  obj = obj.dup
133
141
  if obj.is_a?(Hash)
@@ -11,13 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.description = "A monitoring framework that aims to be simple, malleable, and scalable."
12
12
  s.license = "MIT"
13
13
 
14
- s.add_dependency "eventmachine", "1.2.5"
14
+ s.add_dependency "eventmachine", "1.2.7"
15
15
  s.add_dependency "sensu-json", "2.1.1"
16
16
  s.add_dependency "sensu-logger", "1.2.2"
17
17
  s.add_dependency "sensu-settings", "10.14.0"
18
18
  s.add_dependency "sensu-extension", "1.5.2"
19
19
  s.add_dependency "sensu-extensions", "1.10.0"
20
- s.add_dependency "sensu-transport", "7.1.0"
20
+ s.add_dependency "sensu-transport", "8.1.0"
21
21
  s.add_dependency "sensu-spawn", "2.5.0"
22
22
  s.add_dependency "sensu-redis", "2.3.0"
23
23
  s.add_dependency "em-http-server", "0.1.8"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -31,7 +31,7 @@ cert_chain:
31
31
  jOeGyhtQa9j4FFmsEJDg59f5v/3hECXsa3Xuml3foaFHzX3Ya/YIyd2YFxvkFKIu
32
32
  GVbe7A3YdxzdkH2Es/Ym9twdxXaIDdXzj8sWhw==
33
33
  -----END CERTIFICATE-----
34
- date: 2018-09-04 00:00:00.000000000 Z
34
+ date: 2018-10-12 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: eventmachine
@@ -39,14 +39,14 @@ dependencies:
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 1.2.5
42
+ version: 1.2.7
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 1.2.5
49
+ version: 1.2.7
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: sensu-json
52
52
  requirement: !ruby/object:Gem::Requirement
@@ -123,14 +123,14 @@ dependencies:
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 7.1.0
126
+ version: 8.1.0
127
127
  type: :runtime
128
128
  prerelease: false
129
129
  version_requirements: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 7.1.0
133
+ version: 8.1.0
134
134
  - !ruby/object:Gem::Dependency
135
135
  name: sensu-spawn
136
136
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file