sensu 0.20.0 → 0.20.1

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: f4be5e23925dd65b4c9e71546578bdf0785f2832
4
- data.tar.gz: a1b30fee39f43655d0a6e67a9c07d47604f4e091
3
+ metadata.gz: 5b8129f2924dcf63c31a7bdb855cd40cb7493464
4
+ data.tar.gz: 2a66a8334964bfcbfcb8f3f2638171236181ae5e
5
5
  SHA512:
6
- metadata.gz: 77b81537b1dfb582730bd5187a3d103a607b5b5b8690f51bb092fe75af7be3c3248f3358ba802f52d0944041d8bbb0eadd0554be5ffe644f309e655052d9b17e
7
- data.tar.gz: 0f1b936770d842197941a36b6aa658d248e40785e6c8b595b8e13027e2f0458da753ce8c0d653f7bf5a675b0443d5b4e36df767d0b526295dfa570f3b7cfd500
6
+ metadata.gz: a3cfe4332c8324c4fda668fc6b2aa2d7145dda82f0733b21bb16341f74006861617833a2aa6fd9fd18958ae339cc0f479198573fc849790b4dce93c34083ff15
7
+ data.tar.gz: 91601da033ce04b914df438c002d047cc16e868a4417cb2a3c16763d16646e860eee649e924a06b9c9dde1f8c43db9c2522ba106c3dc6ccf3398b4f28d0be01f
@@ -1,3 +1,21 @@
1
+ ## 0.20.1 - 2015-07-27
2
+
3
+ ### Other
4
+
5
+ Resolving an event, that includes a check TTL, with the Sensu API will
6
+ remove the check from TTL monitoring, until another check result with a
7
+ TTL is received.
8
+
9
+ Added a timestamp to Sensu event data, recording the time of event
10
+ creation.
11
+
12
+ Fixed RabbitMQ transport connection AMQP heartbeat monitoring, the AMQP
13
+ library was sending heartbeat frames on closed connections.
14
+
15
+ The RabbitMQ transport now resets (close connection, etc.) when making
16
+ periodic reconnect attempts. The periodic reconnect timer delay will now
17
+ be incremented by 2 on every attempt, to a maximum of 20 seconds.
18
+
1
19
  ## 0.20.0 - 2015-07-09
2
20
 
3
21
  ### Features
@@ -17,6 +35,15 @@ events.
17
35
  Updated MultiJson and Childprocess to the latest versions, which include
18
36
  improvements and bug fixes.
19
37
 
38
+ Sensu now sets the `SENSU_LOADED_TEMPFILE` environment variable to a
39
+ temporary file path, a file containing the colon delimited list of loaded
40
+ configuration files for the Sensu service
41
+ (e.g.`/tmp/sensu_client_loaded_files`). This new temporary file and
42
+ environment variable (`SENSU_LOADED_TEMPFILE`) replaced
43
+ `SENSU_CONFIG_FILES`, which has been removed, due to the exec ARG_MAX
44
+ (E2BIG) error when spawning processes after loading many configuration
45
+ files (e.g. > 2000).
46
+
20
47
  ## 0.19.2 - 2015-06-08
21
48
 
22
49
  ### Other
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.20.0"
4
+ VERSION = "0.20.1"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
@@ -7,7 +7,7 @@ gem "sensu-logger", "1.0.0"
7
7
  gem "sensu-settings", "3.0.0"
8
8
  gem "sensu-extension", "1.1.2"
9
9
  gem "sensu-extensions", "1.2.0"
10
- gem "sensu-transport", "3.0.0"
10
+ gem "sensu-transport", "3.2.0"
11
11
  gem "sensu-spawn", "1.3.0"
12
12
 
13
13
  require "time"
@@ -317,7 +317,8 @@ module Sensu
317
317
  :client => client,
318
318
  :check => check,
319
319
  :occurrences => 1,
320
- :action => (flapping ? :flapping : :create)
320
+ :action => (flapping ? :flapping : :create),
321
+ :timestamp => Time.now.to_i
321
322
  }
322
323
  if check[:status] != 0 || flapping
323
324
  if stored_event && check[:status] == stored_event[:check][:status]
@@ -666,7 +667,7 @@ module Sensu
666
667
  @redis.get("result:#{result_key}") do |result_json|
667
668
  unless result_json.nil?
668
669
  check = MultiJson.load(result_json)
669
- next unless check[:ttl] && check[:executed]
670
+ next unless check[:ttl] && check[:executed] && !check[:force_resolve]
670
671
  time_since_last_execution = Time.now.to_i - check[:executed]
671
672
  if time_since_last_execution >= check[:ttl]
672
673
  check[:output] = "Last check execution was "
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "sensu-settings", "3.0.0"
23
23
  s.add_dependency "sensu-extension", "1.1.2"
24
24
  s.add_dependency "sensu-extensions", "1.2.0"
25
- s.add_dependency "sensu-transport", "3.0.0"
25
+ s.add_dependency "sensu-transport", "3.2.0"
26
26
  s.add_dependency "sensu-spawn", "1.3.0"
27
27
  s.add_dependency "em-redis-unified", "1.0.0"
28
28
  s.add_dependency "sinatra", "1.4.6"
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: 0.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-09 00:00:00.000000000 Z
12
+ date: 2015-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 3.0.0
132
+ version: 3.2.0
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - '='
138
138
  - !ruby/object:Gem::Version
139
- version: 3.0.0
139
+ version: 3.2.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: sensu-spawn
142
142
  requirement: !ruby/object:Gem::Requirement