check-conditional-aggregate 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +77 -0
- data/LICENSE.txt +21 -0
- data/README.md +65 -0
- data/Rakefile +6 -0
- data/bin/check-conditional-aggregate.rb +218 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- metadata +153 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 66d1b48f59a4b76508fdc876623c9adfd3156f81
|
4
|
+
data.tar.gz: e6ceccd34cc8dd94d9b0bfb03100cf6acb8927d0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3b4715295d1b68fd91c444043f4b710f7ff61b7f525c6f84f288d1b57454e513799764a03f94d21cee57d137b5fbf36e6975356bfd0d5294a937a3b704f1e1c6
|
7
|
+
data.tar.gz: 7e8947aefcb5944bcf1c932fda1e2c6eb8a505e30a53c287ef3b530ec6ff3fa9d8905a0db054a3ce31f7d0f3d9a9fdcbc0cb20d29d6503e19ee5e9e5134191dc
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
check-conditional-aggregate (0.0.4)
|
5
|
+
rest-client
|
6
|
+
sensu-plugin
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
builder (3.2.2)
|
12
|
+
diff-lcs (1.2.5)
|
13
|
+
domain_name (0.5.25)
|
14
|
+
unf (>= 0.0.5, < 1.0.0)
|
15
|
+
faraday (0.9.2)
|
16
|
+
multipart-post (>= 1.2, < 3)
|
17
|
+
geminabox (0.12.4)
|
18
|
+
builder
|
19
|
+
faraday
|
20
|
+
httpclient (>= 2.2.7)
|
21
|
+
nesty
|
22
|
+
sinatra (>= 1.2.7)
|
23
|
+
http-cookie (1.0.2)
|
24
|
+
domain_name (~> 0.5)
|
25
|
+
httpclient (2.6.0.1)
|
26
|
+
json (1.8.3)
|
27
|
+
mime-types (2.6.2)
|
28
|
+
mixlib-cli (1.5.0)
|
29
|
+
multipart-post (2.0.0)
|
30
|
+
nesty (1.0.2)
|
31
|
+
netrc (0.10.3)
|
32
|
+
rack (1.6.4)
|
33
|
+
rack-protection (1.5.3)
|
34
|
+
rack
|
35
|
+
rake (10.4.2)
|
36
|
+
rest-client (1.8.0)
|
37
|
+
http-cookie (>= 1.0.2, < 2.0)
|
38
|
+
mime-types (>= 1.16, < 3.0)
|
39
|
+
netrc (~> 0.7)
|
40
|
+
rspec (3.3.0)
|
41
|
+
rspec-core (~> 3.3.0)
|
42
|
+
rspec-expectations (~> 3.3.0)
|
43
|
+
rspec-mocks (~> 3.3.0)
|
44
|
+
rspec-core (3.3.2)
|
45
|
+
rspec-support (~> 3.3.0)
|
46
|
+
rspec-expectations (3.3.1)
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
+
rspec-support (~> 3.3.0)
|
49
|
+
rspec-mocks (3.3.2)
|
50
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
+
rspec-support (~> 3.3.0)
|
52
|
+
rspec-support (3.3.0)
|
53
|
+
sensu-plugin (1.2.0)
|
54
|
+
json
|
55
|
+
mixlib-cli (>= 1.1.0)
|
56
|
+
sinatra (1.4.6)
|
57
|
+
rack (~> 1.4)
|
58
|
+
rack-protection (~> 1.4)
|
59
|
+
tilt (>= 1.3, < 3)
|
60
|
+
tilt (2.0.1)
|
61
|
+
unf (0.1.4)
|
62
|
+
unf_ext
|
63
|
+
unf_ext (0.0.7.1)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
bundler (~> 1.10)
|
70
|
+
check-conditional-aggregate!
|
71
|
+
geminabox
|
72
|
+
rake (~> 10.0)
|
73
|
+
rspec
|
74
|
+
rspec-mocks
|
75
|
+
|
76
|
+
BUNDLED WITH
|
77
|
+
1.10.6
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Andre Thenot
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# Check::Conditional::Aggregate
|
2
|
+
|
3
|
+
Plugin for Sensu to run an aggregate of other aggregates, following some simple logic rules.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'check-conditional-aggregate'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself with:
|
16
|
+
|
17
|
+
$ gem install check-conditional-aggregate
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Synopsis
|
22
|
+
|
23
|
+
# Generate a warning alert if ANY checks have ANY critical hosts.
|
24
|
+
check-conditional -a API -c "check_foo,check_bar" --warning "any critical in any"
|
25
|
+
|
26
|
+
# Generate a critical if either check_foo or check_bar has all hosts at critical.
|
27
|
+
check-conditional -a API -c "check_foo,check_bar" --critical "all warning in any"
|
28
|
+
|
29
|
+
# Generate a warning if 80% or more of the checks are critical in any of the checks
|
30
|
+
check-conditional -a API -c CHECKS --warning "80% critical in any"
|
31
|
+
|
32
|
+
|
33
|
+
General form:
|
34
|
+
|
35
|
+
check-conditional -a API -c CHECKS [ --critical EXPRESSION | --warning EXPRESSION ]
|
36
|
+
|
37
|
+
CHECKS is a list of one or more comma-separated aggregate checkers. These return a tally of hosts that are OK, in warning state and in critical state. These results are then rolled up to generate a critical or warning depending on whether the associated EXPRESSION matches. The two options can be used together, so you can define a broader expression to generate a warning and a tighter expression that generates a critcal state. The expression syntax is:
|
38
|
+
|
39
|
+
any|all|N% critical|warning in any|all
|
40
|
+
|
41
|
+
The quantifier on the left determines what threshold to apply as each check is being considered, and the quantifier on the right expresses how the results get rolled up.
|
42
|
+
|
43
|
+
## Example
|
44
|
+
|
45
|
+
Suppose we have 3 aggregate checks that monitor latency in 3 regions, and we want to produce an overall health. For the purpose of this
|
46
|
+
|
47
|
+
|
48
|
+
## Development
|
49
|
+
|
50
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
51
|
+
|
52
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
53
|
+
|
54
|
+
|
55
|
+
## License
|
56
|
+
|
57
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
58
|
+
|
59
|
+
## Release Notes
|
60
|
+
### 0.0.3
|
61
|
+
- Perform logic accross multiple aggregate checkers using --checks "Check1,Check2,..."
|
62
|
+
- Removed pattern matching (had been deprecated/broken anyways)
|
63
|
+
|
64
|
+
### 0.0.2
|
65
|
+
- Fixed bug pertaining to specifying --critical and --warning at the same time.
|
data/Rakefile
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# Check Aggregate with Conditional
|
3
|
+
# ===
|
4
|
+
#
|
5
|
+
# Authors
|
6
|
+
# ===
|
7
|
+
# Sean Porter, @portertech
|
8
|
+
# Andre Thenot, @athenot
|
9
|
+
#
|
10
|
+
# Copyright 2012 Sonian, Inc., 2015 Cisco Systems, Inc.
|
11
|
+
#
|
12
|
+
# Released under the same terms as Sensu (the MIT license); see
|
13
|
+
# LICENSE for details.
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'sensu-plugin/check/cli'
|
17
|
+
require 'rest-client'
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
# Subclass of Sensu Plugin Checker. Conforms to Sensu plugin API.
|
21
|
+
class CheckConditionalAggregate < Sensu::Plugin::Check::CLI
|
22
|
+
option :api,
|
23
|
+
short: '-a URL',
|
24
|
+
long: '--api URL',
|
25
|
+
description: 'Sensu API URL',
|
26
|
+
default: 'http://localhost:4567'
|
27
|
+
|
28
|
+
option :user,
|
29
|
+
short: '-u USER',
|
30
|
+
long: '--user USER',
|
31
|
+
description: 'Sensu API USER'
|
32
|
+
|
33
|
+
option :password,
|
34
|
+
short: '-p PASSWORD',
|
35
|
+
long: '--password PASSWORD',
|
36
|
+
description: 'Sensu API PASSWORD'
|
37
|
+
|
38
|
+
option :timeout,
|
39
|
+
short: '-t SECONDS',
|
40
|
+
long: '--timeout SECONDS',
|
41
|
+
description: 'Sensu API connection timeout in SECONDS',
|
42
|
+
proc: proc(&:to_i),
|
43
|
+
default: 30
|
44
|
+
|
45
|
+
option :checks,
|
46
|
+
short: '-c CHECK',
|
47
|
+
long: '--checks CHECK',
|
48
|
+
description: 'Aggregate CHECK name'
|
49
|
+
|
50
|
+
option :age,
|
51
|
+
short: '-A SECONDS',
|
52
|
+
long: '--age SECONDS',
|
53
|
+
description: 'Minimum aggregate age in SECONDS, time since check request issued',
|
54
|
+
default: 30,
|
55
|
+
proc: proc(&:to_i)
|
56
|
+
|
57
|
+
option :limit,
|
58
|
+
short: '-l LIMIT',
|
59
|
+
long: '--limit LIMIT',
|
60
|
+
description: 'Limit of aggregates you want the API to return',
|
61
|
+
proc: proc(&:to_i)
|
62
|
+
|
63
|
+
option :summarize,
|
64
|
+
short: '-s',
|
65
|
+
long: '--summarize',
|
66
|
+
boolean: true,
|
67
|
+
description: 'Summarize check result output',
|
68
|
+
default: false
|
69
|
+
|
70
|
+
option :warning,
|
71
|
+
short: '-W CONDITION',
|
72
|
+
long: '--warning CONDITION',
|
73
|
+
description: 'CONDITION to trigger warning (any|all|N% warning|critical)'
|
74
|
+
|
75
|
+
option :critical,
|
76
|
+
short: '-C CONDITION',
|
77
|
+
long: '--critical CONDITION',
|
78
|
+
description: 'CONDITION to trigger critical (any|all|N% warning|critical)'
|
79
|
+
|
80
|
+
option :message,
|
81
|
+
short: '-M MESSAGE',
|
82
|
+
long: '--message MESSAGE',
|
83
|
+
description: 'A custom error MESSAGE'
|
84
|
+
|
85
|
+
# Main body.
|
86
|
+
def run
|
87
|
+
run_checks(config[:critical], config[:warning], (config[:message] or ''), config[:checks])
|
88
|
+
end
|
89
|
+
|
90
|
+
# REST request to API; handle various failures gracefully
|
91
|
+
# rubocop:disable Metrics/AbcSize
|
92
|
+
def api_request(resource)
|
93
|
+
request = RestClient::Resource.new(config[:api] + resource, timeout: config[:timeout],
|
94
|
+
user: config[:user],
|
95
|
+
password: config[:password])
|
96
|
+
JSON.parse(request.get, symbolize_names: true)
|
97
|
+
rescue RestClient::ResourceNotFound
|
98
|
+
warning "Resource not found: #{resource}"
|
99
|
+
rescue Errno::ECONNREFUSED
|
100
|
+
warning 'Connection refused'
|
101
|
+
rescue RestClient::RequestFailed
|
102
|
+
warning 'Request failed'
|
103
|
+
rescue RestClient::RequestTimeout
|
104
|
+
warning 'Connection timed out'
|
105
|
+
rescue RestClient::Unauthorized
|
106
|
+
warning 'Missing or incorrect Sensu API credentials'
|
107
|
+
rescue JSON::ParserError
|
108
|
+
warning 'Sensu API returned invalid JSON'
|
109
|
+
end
|
110
|
+
|
111
|
+
# Read from API
|
112
|
+
def acquire_aggregate(checkName)
|
113
|
+
# Query Sensu for aggregate timestamps
|
114
|
+
uri = "/aggregates/#{checkName}"
|
115
|
+
issued = api_request(uri + "?age=#{config[:age]}" + (config[:limit] ? "&limit=#{config[:limit]}" : ''))
|
116
|
+
|
117
|
+
# Look for the latest and get the data for that aggregate
|
118
|
+
if !issued.empty?
|
119
|
+
issuedSorted = issued.sort
|
120
|
+
time = issuedSorted.pop
|
121
|
+
if !time.nil?
|
122
|
+
uri += "/#{time}"
|
123
|
+
uri += '?summarize=output' if config[:summarize]
|
124
|
+
checkResult = api_request(uri)
|
125
|
+
else
|
126
|
+
warning "No aggregates older than #{config[:age]} seconds"
|
127
|
+
end
|
128
|
+
else
|
129
|
+
warning "No aggregates for #{checkName}"
|
130
|
+
end
|
131
|
+
checkResult
|
132
|
+
end
|
133
|
+
|
134
|
+
# Comparison logic below
|
135
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
136
|
+
# rubocop:disable Metrics/PerceivedComplexity
|
137
|
+
|
138
|
+
# Perform comparison based on expression rules
|
139
|
+
def compare_threshold(aggregate, quantifier, level, checkName) # rubocop:ignore Metrics/CyclomaticComplexity
|
140
|
+
# Syntax: "any|all|n% warning|critical"
|
141
|
+
symbolLevel = { 'critical' => :critical, 'warning' => :warning }[level]
|
142
|
+
|
143
|
+
# Emit a message if the condition (any, all or percentage) matches.
|
144
|
+
if /(?<percent>\d{1,2})%/ =~ quantifier
|
145
|
+
# A percentage matches
|
146
|
+
percent = percent.to_f
|
147
|
+
if aggregate[symbolLevel].to_i != 0 && aggregate[symbolLevel].to_f * 100 / aggregate[:total].to_f >= percent
|
148
|
+
"#{checkName} @ #{percent}% or more #{level} (#{aggregate[symbolLevel]}/#{aggregate[:total]}), "
|
149
|
+
end
|
150
|
+
elsif quantifier == 'any' && aggregate[symbolLevel].to_f > 0
|
151
|
+
# One or more match
|
152
|
+
"#{checkName} @ one or more #{level}, "
|
153
|
+
elsif quantifier == 'all' && aggregate[:total].to_f != 0 && aggregate[symbolLevel].to_f == aggregate[:total].to_f
|
154
|
+
# All match
|
155
|
+
"#{checkName} @ all #{level}, "
|
156
|
+
else
|
157
|
+
nil # OK
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Iterate over all the checks, get their latest aggregate values and evaluate them against the expressions.
|
162
|
+
def run_checks(configCritical, configWarning, configMessage, configChecks)
|
163
|
+
# Parse the match expression
|
164
|
+
critQuantifier, critLevel, _, critRollupQuantifier = configCritical.split(/\s+/) if configCritical
|
165
|
+
warnQuantifier, warnLevel, _, warnRollupQuantifier = configWarning.split(/\s+/) if configWarning
|
166
|
+
|
167
|
+
# Grab the list of aggregate checkers passed
|
168
|
+
critCount = warnCount = 0
|
169
|
+
checks = configChecks.split(/,/)
|
170
|
+
totalCheckCount = checks.length
|
171
|
+
message = configMessage + ' triggered by '
|
172
|
+
|
173
|
+
# Run each check and see what matches
|
174
|
+
checks.each do |checkName|
|
175
|
+
aggregate = acquire_aggregate(checkName)
|
176
|
+
|
177
|
+
# Look for matches based on expression passed for Critical level
|
178
|
+
if configCritical
|
179
|
+
critMessage = compare_threshold(aggregate, critQuantifier, critLevel, checkName)
|
180
|
+
if critMessage
|
181
|
+
critCount += 1
|
182
|
+
message += critMessage
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# Look for matches based on expression passed for Warning level
|
187
|
+
if configWarning
|
188
|
+
warnMessage = compare_threshold(aggregate, warnQuantifier, warnLevel, checkName)
|
189
|
+
if warnMessage
|
190
|
+
warnCount += 1
|
191
|
+
message += warnMessage
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Tidy up human-readable string
|
197
|
+
message = message[0..-3]
|
198
|
+
|
199
|
+
# Tally up results based on the rollup criteria and generate the actual WARNING or CRITICAL exits.
|
200
|
+
if configCritical
|
201
|
+
if critRollupQuantifier == 'all' && critCount == totalCheckCount
|
202
|
+
critical message + ' (in all checks)'
|
203
|
+
elsif critRollupQuantifier == 'any' && critCount.to_i > 0
|
204
|
+
critical message + ' (in any check)'
|
205
|
+
end
|
206
|
+
end
|
207
|
+
if configWarning
|
208
|
+
if warnRollupQuantifier == 'all' && warnCount == totalCheckCount
|
209
|
+
warning message + ' (in all checks)'
|
210
|
+
elsif warnRollupQuantifier == 'any' && warnCount.to_i > 0
|
211
|
+
warning message + ' (in any check)'
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# Neither condition matched so that means we're in an OK state.
|
216
|
+
ok 'Aggregate looks GOOD'
|
217
|
+
end
|
218
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'check-conditional-aggregate'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
metadata
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: check-conditional-aggregate
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andre Thenot
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sensu-plugin
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rest-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.8'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.10'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.3'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: geminabox
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.12'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.12'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-mocks
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.3'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.3'
|
111
|
+
description: Plugin for Sensu to run an aggregate of other aggregates, following some
|
112
|
+
simple logic rules.
|
113
|
+
email:
|
114
|
+
- andrthen@cisco.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- CODE_OF_CONDUCT.md
|
120
|
+
- Gemfile
|
121
|
+
- Gemfile.lock
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- bin/check-conditional-aggregate.rb
|
126
|
+
- bin/console
|
127
|
+
- bin/setup
|
128
|
+
homepage: https://github.com/athenot/check-conditional-aggregate
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- bin
|
136
|
+
- lib
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
requirements: []
|
148
|
+
rubyforge_project:
|
149
|
+
rubygems_version: 2.4.5.1
|
150
|
+
signing_key:
|
151
|
+
specification_version: 4
|
152
|
+
summary: Sensu plugin to aggregate checks based on conditions.
|
153
|
+
test_files: []
|