sensu 0.19.0.beta.1 → 0.19.0.beta.2

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: b53a9232f4bfe9c9b54b5d1d32ba420c1a4129b0
4
- data.tar.gz: 4a6ea0177318bd16ec378f3294746ddc376a5bc1
3
+ metadata.gz: 0ae173bd2428587fffdf6de94e92607c0ab7a719
4
+ data.tar.gz: fb90d0c275998745aa1f30e699a1e1301eab3182
5
5
  SHA512:
6
- metadata.gz: 26e2997903dd0cb62209e5c34a74283ebbe92ea2daa1eb04410cffb81ea8cc5da75cfaea69c408989f927b4dd71680585b85634fe05f227f1d3bf557075f6d01
7
- data.tar.gz: 648fa07f0b281359530d6b1bb107773b0fc2f97b09cc2db44529d46b41010aa5a8656741dc4257817834e5d8e2b1f916b5191cfceab56f9921667d7b84ee3b62
6
+ metadata.gz: 00315406e6fc5f934ce302a1307982d0d722ed1a228a6c1ede6c99f8c1fb60b3de6eb2b0af029b962a83a41a1717356ee85eafb6ba73a8536a5faefeb85c345e
7
+ data.tar.gz: 296902c0c5a78e7d86926089e84b22a0fe94df7ad5af774faf04882c83a31d163238d43a150cdcc69f566d0d7ded84b524e52fef6214739b00b24dba5e858243
data/CHANGELOG.md CHANGED
@@ -33,6 +33,14 @@ when real threads are used.
33
33
  Many Ruby EventMachine fixes and improvements, including FD_CLOEXEC for
34
34
  the Sensu client UDP socket.
35
35
 
36
+ Fixed event resolution for flapping events.
37
+
38
+ Check source is now published in check requests if configured. Including
39
+ the check source in check requests fixes JIT clients for standard (pubsub)
40
+ check executions and adds context to client check execution log events.
41
+
42
+ JIT clients now have a Sensu version, set to the Sensu server version.
43
+
36
44
  ## 0.18.1 - 2015-05-11
37
45
 
38
46
  ### Other
@@ -317,6 +317,7 @@ module Sensu
317
317
  }
318
318
  read_data(rules) do |data|
319
319
  data[:keepalives] = false
320
+ data[:version] = VERSION
320
321
  data[:timestamp] = Time.now.to_i
321
322
  settings.redis.set("client:#{data[:name]}", MultiJson.dump(data)) do
322
323
  settings.redis.sadd("clients", data[:name]) do
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.19.0.beta.1"
4
+ VERSION = "0.19.0.beta.2"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
@@ -279,9 +279,11 @@ module Sensu
279
279
  def check_flapping?(stored_event, check)
280
280
  if check.has_key?(:low_flap_threshold) && check.has_key?(:high_flap_threshold)
281
281
  was_flapping = stored_event && stored_event[:action] == "flapping"
282
- check[:total_state_change] >= check[:high_flap_threshold] ||
283
- (was_flapping && check[:total_state_change] <= check[:low_flap_threshold]) ||
284
- was_flapping
282
+ if was_flapping
283
+ check[:total_state_change] > check[:low_flap_threshold]
284
+ else
285
+ check[:total_state_change] >= check[:high_flap_threshold]
286
+ end
285
287
  else
286
288
  false
287
289
  end
@@ -353,7 +355,8 @@ module Sensu
353
355
  :name => name,
354
356
  :address => "unknown",
355
357
  :subscriptions => [],
356
- :keepalives => false
358
+ :keepalives => false,
359
+ :version => VERSION
357
360
  }
358
361
  update_client_registry(client, &callback)
359
362
  end
@@ -471,6 +474,7 @@ module Sensu
471
474
  :issued => Time.now.to_i
472
475
  }
473
476
  payload[:command] = check[:command] if check.has_key?(:command)
477
+ payload[:source] = check[:source] if check.has_key?(:source)
474
478
  @logger.info("publishing check request", {
475
479
  :payload => payload,
476
480
  :subscribers => check[:subscribers]
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.19.0.beta.1
4
+ version: 0.19.0.beta.2
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-05-29 00:00:00.000000000 Z
12
+ date: 2015-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json