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 +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: 0ae173bd2428587fffdf6de94e92607c0ab7a719
|
4
|
+
data.tar.gz: fb90d0c275998745aa1f30e699a1e1301eab3182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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: 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-
|
12
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|