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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/sensu/api/process.rb +1 -0
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/server/process.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6fc8fe8d339e6959be5b59c320d65ea4939112c
|
4
|
+
data.tar.gz: b14d8452424bcec98308a084ed3c060d7776205b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/sensu/api/process.rb
CHANGED
@@ -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
|
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/server/process.rb
CHANGED
@@ -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
|
-
|
283
|
-
|
284
|
-
|
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.
|
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-
|
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
|