sensu 0.19.0.beta.1-java → 0.19.0.beta.2-java

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: 1b14366e10ecd072a11321772c05290328d02a5d
4
- data.tar.gz: d60538ee8e8fcc18f721d4c6bd89be1306804750
3
+ metadata.gz: e6fc8fe8d339e6959be5b59c320d65ea4939112c
4
+ data.tar.gz: b14d8452424bcec98308a084ed3c060d7776205b
5
5
  SHA512:
6
- metadata.gz: 599e6341ce3a3c4f6c7260204d3daf92d6d812f2c747854bc8ef01372ff2cdeb1da08f3bb414bd002866a7640008f69d7057acdd65af41c32e437d6ad38ee54e
7
- data.tar.gz: 2983af3cd6f4920658f4aa833af423e0dd7942a7562c187c4edfab32b56d643fd465b089a703cf171869034b2df837c0830c597b2b40d6fa32e2c6e8232edfde
6
+ metadata.gz: 1647d49e3f5c113e6c9de36bfe95c1e02a29db714bf7145976bb423bf94387e16dd3ec15d09169a7f53406a3a954a1b980c311b5b038029eb3178427c14b16fe
7
+ data.tar.gz: d093db0b5779106c5fc4e65e303a6fbe84e82d7cc976a4fbc8209ec7b8c29b0a46ab6e0b83788e1b614202ad1c7cb6e1b7ddb878f5decd8d9c89f46368061b47
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: java
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
  requirement: !ruby/object:Gem::Requirement