sensu-plugins-influxdb 0.0.1.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/LICENSE +22 -0
- data/README.md +36 -0
- data/bin/check-influxdb-query.rb +165 -0
- data/bin/check-influxdb.rb +82 -0
- data/bin/metrics-influxdb.rb +62 -0
- data/lib/sensu-plugins-influxdb/version.rb +28 -0
- data/lib/sensu-plugins-influxdb.rb +14 -0
- metadata +251 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f5f4aabcca9f87201149a2ac0f2fb43cc40cd729
|
4
|
+
data.tar.gz: a30657f1e06964f0925cf01cf561fef6ed69a9b4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c8ce39ad6294bf7750bfd63acf77a6c0723132ec92c9daf71325f09df3534559da49085b3c998f5eb63846d98f44d2bdcc4c4fc7042550ad0deb86862e107c87
|
7
|
+
data.tar.gz: 1f102ac114cdda31fd819c96f965e602df3eb1f5abec3354d3ed2fcb72b8c47e54177dfe804e1091e11675dd639c91d687ff843e2324cfac2a9142f5adce7ebe
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#Change Log
|
2
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
|
+
|
4
|
+
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
|
+
|
6
|
+
## Unreleased][unreleased]
|
7
|
+
|
8
|
+
## 0.0.1 - 2015-04-21
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- initial release
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Sensu-Plugins
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
## Sensu-Plugins-influxdb
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-influxdb.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-influxdb)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-influxdb.svg)](http://badge.fury.io/rb/sensu-plugins-influxdb)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb)
|
7
|
+
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-influxdb.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-influxdb)
|
8
|
+
[![Codeship Status for sensu-plugins/sensu-plugins-influxdb](https://codeship.com/projects/94979580-cd12-0132-f567-767651b3a193/status?branch=master)](https://codeship.com/projects/76219)
|
9
|
+
## Functionality
|
10
|
+
|
11
|
+
## Files
|
12
|
+
* bin/check-influxdb.rb
|
13
|
+
* bin/check-influxdb-query.rb
|
14
|
+
* bin/metrics-influxdb.rb
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
**metrics-influxdb**
|
19
|
+
```
|
20
|
+
{
|
21
|
+
"influxdb" : {
|
22
|
+
"server" : "influxdb.familyguy.com",
|
23
|
+
"port" : "8086",
|
24
|
+
"username" : "root",
|
25
|
+
"password" : "root",
|
26
|
+
"database" : "stats"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
```
|
30
|
+
|
31
|
+
## Installation
|
32
|
+
|
33
|
+
[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
|
34
|
+
|
35
|
+
|
36
|
+
## Notes
|
@@ -0,0 +1,165 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# check-influxdb-query
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# Check InfluxDB queries
|
7
|
+
#
|
8
|
+
# OUTPUT:
|
9
|
+
# plain text
|
10
|
+
#
|
11
|
+
# PLATFORMS:
|
12
|
+
# Linux
|
13
|
+
#
|
14
|
+
# DEPENDENCIES:
|
15
|
+
# gem: sensu-plugin
|
16
|
+
# gem: jsonpath
|
17
|
+
# gem: json
|
18
|
+
# gem: dentaku
|
19
|
+
#
|
20
|
+
# USAGE:
|
21
|
+
# example commands
|
22
|
+
#
|
23
|
+
# NOTES:
|
24
|
+
# See the README here https://github.com/zeroXten/check_influxdb_query
|
25
|
+
#
|
26
|
+
# LICENSE:
|
27
|
+
# Copyright 2014, Fraser Scott <fraser.scott@gmail.com>
|
28
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
29
|
+
# for details.
|
30
|
+
#
|
31
|
+
|
32
|
+
require 'influxdb'
|
33
|
+
require 'sensu-plugin/check/cli'
|
34
|
+
require 'json'
|
35
|
+
require 'jsonpath'
|
36
|
+
require 'dentaku'
|
37
|
+
|
38
|
+
# VERSION = '0.1.0'
|
39
|
+
|
40
|
+
#
|
41
|
+
# Check Influxdb Query
|
42
|
+
#
|
43
|
+
class CheckInfluxdbQuery < Sensu::Plugin::Check::CLI
|
44
|
+
check_name nil
|
45
|
+
option :host,
|
46
|
+
short: '-H HOST',
|
47
|
+
long: '--host HOST',
|
48
|
+
default: 'localhost',
|
49
|
+
description: 'InfluxDB host'
|
50
|
+
|
51
|
+
option :port,
|
52
|
+
short: '-P PORT',
|
53
|
+
long: '--port PORT',
|
54
|
+
default: '8086',
|
55
|
+
description: 'InfluxDB port'
|
56
|
+
|
57
|
+
option :database,
|
58
|
+
short: '-d DATABASE',
|
59
|
+
long: '--database DATABASE',
|
60
|
+
default: 'influxdb',
|
61
|
+
description: 'InfluxDB database name'
|
62
|
+
|
63
|
+
option :username,
|
64
|
+
short: '-u USERNAME',
|
65
|
+
long: '--username USERNAME',
|
66
|
+
default: 'root',
|
67
|
+
description: 'API username'
|
68
|
+
|
69
|
+
option :password,
|
70
|
+
short: '-p PASSWORD',
|
71
|
+
long: '--password PASSWORD',
|
72
|
+
default: 'root',
|
73
|
+
description: 'API password'
|
74
|
+
|
75
|
+
option :query,
|
76
|
+
short: '-q QUERY',
|
77
|
+
long: '--query QUERY',
|
78
|
+
required: true,
|
79
|
+
description: 'Query to run. See http://influxdb.com/docs/v0.8/api/query_language.html'
|
80
|
+
|
81
|
+
option :alias,
|
82
|
+
short: '-a ALIAS',
|
83
|
+
long: '--alias ALIAS',
|
84
|
+
default: nil,
|
85
|
+
description: 'Alias of query (e.g. if query and output gets too long)'
|
86
|
+
|
87
|
+
option :jsonpath,
|
88
|
+
short: '-j JSONPATH',
|
89
|
+
long: '--jsonpath JSONPATH',
|
90
|
+
default: nil,
|
91
|
+
description: 'Json path to select value. Takes the first value, or 0 if none. See http://goessner.net/articles/JsonPath/'
|
92
|
+
|
93
|
+
option :noresult,
|
94
|
+
short: '-n',
|
95
|
+
long: '--noresult',
|
96
|
+
boolean: true,
|
97
|
+
description: 'Go critical for no result from query'
|
98
|
+
|
99
|
+
option :warning,
|
100
|
+
short: '-w WARNING',
|
101
|
+
long: '--warning WARNING',
|
102
|
+
default: nil,
|
103
|
+
description: "Warning threshold expression. E.g. 'value >= 10'. See https://github.com/rubysolo/dentaku"
|
104
|
+
|
105
|
+
option :critical,
|
106
|
+
short: '-c CRITICAL',
|
107
|
+
long: '--critical CRITICAL',
|
108
|
+
default: nil,
|
109
|
+
description: "Critical threshold expression. E.g. 'value >= 20'. See https://github.com/rubysolo/dentaku"
|
110
|
+
|
111
|
+
option :help,
|
112
|
+
short: '-h',
|
113
|
+
long: '--help',
|
114
|
+
description: 'Show this message',
|
115
|
+
on: :tail,
|
116
|
+
boolean: true,
|
117
|
+
show_options: true,
|
118
|
+
exit: 0
|
119
|
+
|
120
|
+
# option :version,
|
121
|
+
# short: '-v',
|
122
|
+
# long: '--version',
|
123
|
+
# description: 'Show version',
|
124
|
+
# on: :tail,
|
125
|
+
# boolean: true,
|
126
|
+
# proc: proc { puts "Version #{VERSION}" },
|
127
|
+
# exit: 0
|
128
|
+
|
129
|
+
def run # rubocop:disable all
|
130
|
+
influxdb = InfluxDB::Client.new config[:database],
|
131
|
+
host: config[:host],
|
132
|
+
port: config[:port],
|
133
|
+
username: config[:username],
|
134
|
+
password: config[:password]
|
135
|
+
|
136
|
+
value = influxdb.query config[:query]
|
137
|
+
|
138
|
+
if config[:alias]
|
139
|
+
query_name = config[:alias]
|
140
|
+
else
|
141
|
+
query_name = config[:query]
|
142
|
+
end
|
143
|
+
|
144
|
+
if config[:noresult] && value.empty?
|
145
|
+
critical "No result for query '#{query_name}'"
|
146
|
+
end
|
147
|
+
|
148
|
+
if config[:jsonpath]
|
149
|
+
json_path = JsonPath.new(config[:jsonpath])
|
150
|
+
value = json_path.on(value).first || 0
|
151
|
+
|
152
|
+
calc = Dentaku::Calculator.new
|
153
|
+
if config[:critical] && calc.evaluate(config[:critical], value: value)
|
154
|
+
critical "Value '#{value}' matched '#{config[:critical]}' for query '#{query_name}'"
|
155
|
+
elsif config[:warning] && calc.evaluate(config[:warning], value: value)
|
156
|
+
warning "Value '#{value}' matched '#{config[:warning]}' for query '#{query_name}'"
|
157
|
+
else
|
158
|
+
ok "Value '#{value}' ok for query '#{query_name}'"
|
159
|
+
end
|
160
|
+
else
|
161
|
+
puts 'Debug output. Use -j to check value...'
|
162
|
+
puts JSON.pretty_generate(value)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# check-influx
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# Check if /ping endopoint is responding
|
7
|
+
#
|
8
|
+
# OUTPUT:
|
9
|
+
# plain text
|
10
|
+
#
|
11
|
+
# PLATFORMS:
|
12
|
+
# Linux
|
13
|
+
#
|
14
|
+
# DEPENDENCIES:
|
15
|
+
# gem: sensu-plugin
|
16
|
+
# gem: uri
|
17
|
+
# gem: json
|
18
|
+
#
|
19
|
+
# USAGE:
|
20
|
+
# #YELLOW
|
21
|
+
#
|
22
|
+
# NOTES:
|
23
|
+
#
|
24
|
+
# LICENSE:
|
25
|
+
# Copyright (C) 2014, Mitsutoshi Aoe <maoe@foldr.in>
|
26
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
27
|
+
# for details.
|
28
|
+
#
|
29
|
+
|
30
|
+
require 'sensu-plugin/check/cli'
|
31
|
+
require 'net/http'
|
32
|
+
require 'uri'
|
33
|
+
require 'json'
|
34
|
+
|
35
|
+
#
|
36
|
+
# Check InfluxDB
|
37
|
+
#
|
38
|
+
class CheckInfluxDB < Sensu::Plugin::Check::CLI
|
39
|
+
option :host,
|
40
|
+
description: 'Host address of the InfluxDB server',
|
41
|
+
short: '-h HOST',
|
42
|
+
long: '--host HOST',
|
43
|
+
default: 'localhost'
|
44
|
+
|
45
|
+
option :port,
|
46
|
+
description: 'Port number of the InfluxDB server',
|
47
|
+
short: '-p PORT',
|
48
|
+
long: '--port PORT',
|
49
|
+
proc: proc(&:to_i),
|
50
|
+
default: 8086
|
51
|
+
|
52
|
+
option :ssl,
|
53
|
+
description: 'Turn on/off SSL (default: false)',
|
54
|
+
short: '-s',
|
55
|
+
long: '--ssl',
|
56
|
+
boolean: true,
|
57
|
+
default: false
|
58
|
+
|
59
|
+
option :timeout,
|
60
|
+
description: 'Seconds to wait for the connection to open or read (default: 1.0s)',
|
61
|
+
short: '-t SECONDS',
|
62
|
+
long: '--timeout SECONDS',
|
63
|
+
proc: proc(&:to_f),
|
64
|
+
default: 1.0
|
65
|
+
|
66
|
+
def run
|
67
|
+
http = Net::HTTP.new(config[:host], config[:port])
|
68
|
+
http.open_timeout = config[:timeout]
|
69
|
+
http.read_timeout = config[:timeout]
|
70
|
+
http.use_ssl = config[:ssl]
|
71
|
+
http.start do
|
72
|
+
status = JSON.parse(http.get('/ping').body)
|
73
|
+
if status == { 'status' => 'ok' }
|
74
|
+
ok status.to_s
|
75
|
+
else
|
76
|
+
critical status.to_s
|
77
|
+
end
|
78
|
+
end
|
79
|
+
rescue => e
|
80
|
+
critical e.to_s
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# metrics-influx.rb
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
#
|
7
|
+
# OUTPUT:
|
8
|
+
# plain text
|
9
|
+
#
|
10
|
+
# PLATFORMS:
|
11
|
+
# Linux
|
12
|
+
#
|
13
|
+
# DEPENDENCIES:
|
14
|
+
# gem: sensu-plugin
|
15
|
+
# gem: influxdb
|
16
|
+
#
|
17
|
+
# USAGE:
|
18
|
+
# #YELLOW
|
19
|
+
#
|
20
|
+
# NOTES:
|
21
|
+
#
|
22
|
+
# LICENSE:
|
23
|
+
# Copyright (C) 2015, Sensu Plugins
|
24
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
25
|
+
# for details.
|
26
|
+
#
|
27
|
+
|
28
|
+
require 'sensu-handler'
|
29
|
+
require 'influxdb'
|
30
|
+
|
31
|
+
#
|
32
|
+
# Sensu To Influxdb
|
33
|
+
#
|
34
|
+
class SensuToInfluxDB < Sensu::Handler
|
35
|
+
def filter; end
|
36
|
+
|
37
|
+
def handle
|
38
|
+
influxdb_server = settings['influxdb']['server']
|
39
|
+
influxdb_port = settings['influxdb']['port']
|
40
|
+
influxdb_user = settings['influxdb']['username']
|
41
|
+
influxdb_pass = settings['influxdb']['password']
|
42
|
+
influxdb_db = settings['influxdb']['database']
|
43
|
+
|
44
|
+
influxdb_data = InfluxDB::Client.new influxdb_db, host: influxdb_server,
|
45
|
+
username: influxdb_user,
|
46
|
+
password: influxdb_pass,
|
47
|
+
port: influxdb_port,
|
48
|
+
server: influxdb_server
|
49
|
+
mydata = []
|
50
|
+
@event['check']['output'].each do |metric|
|
51
|
+
m = metric.split
|
52
|
+
next unless m.count == 3
|
53
|
+
key = m[0].split('.', 2)[1]
|
54
|
+
key.gsub!('.', '_')
|
55
|
+
value = m[1].to_f
|
56
|
+
mydata = { host: @event['client']['name'], value: value,
|
57
|
+
ip: @event['client']['address']
|
58
|
+
}
|
59
|
+
influxdb_data.write_point(key, mydata)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
# encoding: utf-8
|
4
|
+
module SensuPluginsInfluxdb
|
5
|
+
# This defines the version of the gem
|
6
|
+
module Version
|
7
|
+
MAJOR = 0
|
8
|
+
MINOR = 0
|
9
|
+
PATCH = 1
|
10
|
+
|
11
|
+
VER_STRING = [MAJOR, MINOR, PATCH, 'alpha.1'].compact.join('.')
|
12
|
+
|
13
|
+
NAME = 'sensu-plugins-influxdb'
|
14
|
+
BANNER = "#{NAME} v%s"
|
15
|
+
|
16
|
+
module_function
|
17
|
+
|
18
|
+
def version
|
19
|
+
format(BANNER, VER_STRING)
|
20
|
+
end
|
21
|
+
|
22
|
+
def json_version
|
23
|
+
{
|
24
|
+
'version' => VER_STRING
|
25
|
+
}.to_json
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,251 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sensu-plugins-influxdb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sensu-Plugins and contributors
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: json
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.8.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.8.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: influxdb
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.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: 0.1.8
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jsonpath
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.5.6
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.5.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dentaku
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.2.4
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.2.4
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sensu-plugin
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.1.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.1.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: codeclimate-test-reporter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.4'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.30.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.30.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.1'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.1'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: bundler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.7'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.7'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '10.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '10.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: github-markup
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.3'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.3'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: redcarpet
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '3.2'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '3.2'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0.8'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0.8'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pry
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0.10'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0.10'
|
209
|
+
description: Sensu plugins for influxDB
|
210
|
+
email: "<sensu-users@googlegroups.com>"
|
211
|
+
executables: []
|
212
|
+
extensions: []
|
213
|
+
extra_rdoc_files: []
|
214
|
+
files:
|
215
|
+
- CHANGELOG.md
|
216
|
+
- LICENSE
|
217
|
+
- README.md
|
218
|
+
- bin/check-influxdb-query.rb
|
219
|
+
- bin/check-influxdb.rb
|
220
|
+
- bin/metrics-influxdb.rb
|
221
|
+
- lib/sensu-plugins-influxdb.rb
|
222
|
+
- lib/sensu-plugins-influxdb/version.rb
|
223
|
+
homepage: https://github.com/sensu-plugins/sensu-plugins-campfire
|
224
|
+
licenses:
|
225
|
+
- MIT
|
226
|
+
metadata:
|
227
|
+
maintainer: "@mattyjones"
|
228
|
+
development_status: active
|
229
|
+
production_status: unstable - testing recommended
|
230
|
+
post_install_message:
|
231
|
+
rdoc_options: []
|
232
|
+
require_paths:
|
233
|
+
- lib
|
234
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - ">="
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: 1.9.3
|
239
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 1.3.1
|
244
|
+
requirements: []
|
245
|
+
rubyforge_project:
|
246
|
+
rubygems_version: 2.2.2
|
247
|
+
signing_key:
|
248
|
+
specification_version: 4
|
249
|
+
summary: Sensu plugins for influxdb
|
250
|
+
test_files: []
|
251
|
+
has_rdoc:
|