sensu 0.13.0.beta.2 → 0.13.0

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: ebe8f2ff35d35e0e0e23a9e81ba46e8d3a03fbaf
4
- data.tar.gz: c5af1513036eb83da709fd3fb931e61cb4d66b95
3
+ metadata.gz: 6cc2cd84a18783bc81b75a437c4b859629a16562
4
+ data.tar.gz: c1da5bae0f09def538dbdf5ee05a927ad3cb18ca
5
5
  SHA512:
6
- metadata.gz: e56c505782becada98dae8663a443c118f37c5523395a374bd52b0c88cda28f7144dd42d65fe4ecb76ce677e5d44cbaf48409561efe24071f7387f9b3bd49892
7
- data.tar.gz: f38f0e7cccc4b65b0a9cd1fe788bacaad1129aca8f6f6c08db49864a723e051a68aedc44f21543117b0ab9b26b6a1c43cffeacb061f07d34740d764a32019aaf
6
+ metadata.gz: 62ead647ed65e0c20890935846b48e3dbf93847c9b3eb1fcb72b215a9933fd2270ee01a54f84b1db4d07d0cf4f811e90a1a7f40ef13676ecd6b454bcbc7f75d1
7
+ data.tar.gz: a1b3c3f6b6e310c576e8c6b68b8af93a6b654ad0b7d25255d9a7fbdf6c44a2b158d6a55e0d0972b338f4d4c6c4a8d3607470174469f05339c4005ee201a38d5a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.13.0 - TBD
1
+ ## 0.13.0 - 2014-06-12
2
2
 
3
3
  ### Non-backwards compatible changes
4
4
 
@@ -25,6 +25,10 @@ services.
25
25
 
26
26
  Client keepalives now contain the Sensu version.
27
27
 
28
+ Support for nested handler sets (not deep).
29
+
30
+ Setting validation reports all invalid definitions before Sensu exits.
31
+
28
32
  ### Other
29
33
 
30
34
  Clients now only load instances of check extensions, and servers load
@@ -42,6 +46,8 @@ Dropped the Oj JSON parser, heap allocation issues and memory leaks.
42
46
  Client RabbitMQ queues are no longer server named (bugs), they are now
43
47
  composed of the client name, Sensu version, and the timestamp at creation.
44
48
 
49
+ Server master election lock updates and queries are more frequent.
50
+
45
51
  ## 0.12.6 - 2014-02-19
46
52
 
47
53
  ### Non-backwards compatible changes
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Sonian Inc.
1
+ Copyright (c) 2014 Sonian Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
- VERSION = '0.13.0.beta.2'
3
+ VERSION = '0.13.0'
4
4
 
5
5
  SEVERITIES = %w[ok warning critical unknown]
6
6
 
data/lib/sensu/daemon.rb CHANGED
@@ -2,13 +2,13 @@ require 'rubygems'
2
2
 
3
3
  gem 'multi_json', '1.10.1'
4
4
 
5
- gem 'sensu-em', '2.2.0'
6
- gem 'sensu-logger', '0.0.1'
7
- gem 'sensu-settings', '0.0.7'
8
- gem 'sensu-extension', '0.0.3'
9
- gem 'sensu-extensions', '0.0.5'
10
- gem 'sensu-transport', '0.0.7'
11
- gem 'sensu-spawn', '0.0.3'
5
+ gem 'sensu-em', '2.4.0'
6
+ gem 'sensu-logger', '1.0.0'
7
+ gem 'sensu-settings', '1.0.0'
8
+ gem 'sensu-extension', '1.0.0'
9
+ gem 'sensu-extensions', '1.0.0'
10
+ gem 'sensu-transport', '1.0.0'
11
+ gem 'sensu-spawn', '1.0.0'
12
12
 
13
13
  require 'time'
14
14
  require 'uri'
data/lib/sensu/server.rb CHANGED
@@ -116,12 +116,18 @@ module Sensu
116
116
  end
117
117
  end
118
118
 
119
- def derive_handlers(handler_list)
119
+ def derive_handlers(handler_list, depth=0)
120
120
  handler_list.compact.inject(Array.new) do |handlers, handler_name|
121
121
  if @settings.handler_exists?(handler_name)
122
122
  handler = @settings[:handlers][handler_name].merge(:name => handler_name)
123
123
  if handler[:type] == 'set'
124
- handlers = handlers + derive_handlers(handler[:handlers])
124
+ if depth < 2
125
+ handlers = handlers + derive_handlers(handler[:handlers], depth + 1)
126
+ else
127
+ @logger.error('handler sets cannot be deeply nested', {
128
+ :handler => handler
129
+ })
130
+ end
125
131
  else
126
132
  handlers << handler
127
133
  end
data/sensu.gemspec CHANGED
@@ -9,20 +9,20 @@ Gem::Specification.new do |s|
9
9
  s.email = ['portertech@gmail.com', 'justin.kolberg@sonian.net']
10
10
  s.homepage = 'https://github.com/sensu/sensu'
11
11
  s.summary = 'A monitoring framework'
12
- s.description = 'A monitoring framework that aims to be simple, malleable, and scalable. Uses the publish/subscribe model.'
12
+ s.description = 'A monitoring framework that aims to be simple, malleable, and scalable.'
13
13
  s.license = 'MIT'
14
14
  s.has_rdoc = false
15
15
 
16
16
  s.add_dependency('json') if RUBY_VERSION < "1.9"
17
17
  s.add_dependency('multi_json', '1.10.1')
18
18
  s.add_dependency('uuidtools', '2.1.4')
19
- s.add_dependency('sensu-em', '2.2.0')
20
- s.add_dependency('sensu-logger', '0.0.1')
21
- s.add_dependency('sensu-settings', '0.0.7')
22
- s.add_dependency('sensu-extension', '0.0.3')
23
- s.add_dependency('sensu-extensions', '0.0.5')
24
- s.add_dependency('sensu-transport', '0.0.7')
25
- s.add_dependency('sensu-spawn', '0.0.3')
19
+ s.add_dependency('sensu-em', '2.4.0')
20
+ s.add_dependency('sensu-logger', '1.0.0')
21
+ s.add_dependency('sensu-settings', '1.0.0')
22
+ s.add_dependency('sensu-extension', '1.0.0')
23
+ s.add_dependency('sensu-extensions', '1.0.0')
24
+ s.add_dependency('sensu-transport', '1.0.0')
25
+ s.add_dependency('sensu-spawn', '1.0.0')
26
26
  s.add_dependency('em-redis-unified', '0.5.0')
27
27
  s.add_dependency('sinatra', '1.3.5')
28
28
  s.add_dependency('async_sinatra', '1.0.0')
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.13.0.beta.2
4
+ version: 0.13.0
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: 2014-06-03 00:00:00.000000000 Z
12
+ date: 2014-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -45,98 +45,98 @@ dependencies:
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 2.2.0
48
+ version: 2.4.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 2.2.0
55
+ version: 2.4.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: sensu-logger
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.0.1
62
+ version: 1.0.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.0.1
69
+ version: 1.0.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: sensu-settings
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: 0.0.7
76
+ version: 1.0.0
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - '='
82
82
  - !ruby/object:Gem::Version
83
- version: 0.0.7
83
+ version: 1.0.0
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: sensu-extension
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: 0.0.3
90
+ version: 1.0.0
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.0.3
97
+ version: 1.0.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: sensu-extensions
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.0.5
104
+ version: 1.0.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: 0.0.5
111
+ version: 1.0.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: sensu-transport
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - '='
117
117
  - !ruby/object:Gem::Version
118
- version: 0.0.7
118
+ version: 1.0.0
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - '='
124
124
  - !ruby/object:Gem::Version
125
- version: 0.0.7
125
+ version: 1.0.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: sensu-spawn
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 0.0.3
132
+ version: 1.0.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: 0.0.3
139
+ version: 1.0.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: em-redis-unified
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -236,7 +236,6 @@ dependencies:
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  description: A monitoring framework that aims to be simple, malleable, and scalable.
239
- Uses the publish/subscribe model.
240
239
  email:
241
240
  - portertech@gmail.com
242
241
  - justin.kolberg@sonian.net
@@ -280,9 +279,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
280
279
  version: '0'
281
280
  required_rubygems_version: !ruby/object:Gem::Requirement
282
281
  requirements:
283
- - - ">"
282
+ - - ">="
284
283
  - !ruby/object:Gem::Version
285
- version: 1.3.1
284
+ version: '0'
286
285
  requirements: []
287
286
  rubyforge_project:
288
287
  rubygems_version: 2.2.0
@@ -290,4 +289,3 @@ signing_key:
290
289
  specification_version: 4
291
290
  summary: A monitoring framework
292
291
  test_files: []
293
- has_rdoc: false