sensu-plugins-haproxy 0.0.1.alpha.2 → 0.0.1.alpha.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +7 -0
- data/README.md +2 -2
- data/bin/check-haproxy.rb +1 -5
- data/bin/metrics-haproxy.rb +1 -6
- data/lib/sensu-plugins-haproxy.rb +12 -4
- data/lib/sensu-plugins-haproxy/version.rb +28 -0
- metadata +13 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f409b7d971bb6cc31322e9a84f54d5032f4cf1aa
|
|
4
|
+
data.tar.gz: 09df82629d44efb21a9aa97215edddacddd42596
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7d8f10b67cd3e0fdeb1980783c076c452ea4e0faf4280f1ca48855d1025f4a237d0b08eda464e895ad60e87b02a4897402b66450dbd51cf7b090a016fd503db
|
|
7
|
+
data.tar.gz: 9e7afe3c5499025e63b17eaa48b02a2bb1bbe3f13a2574041db96224e5b6bc61eb53a3fc6b13657a64949c72de5e93a667b402fc8e398ffdb5bb61a884592a69
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/bin/check-haproxy.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#! /usr/bin/env ruby
|
|
2
2
|
#
|
|
3
|
-
# check-haproxy
|
|
3
|
+
# check-haproxy.rb
|
|
4
4
|
#
|
|
5
5
|
# DESCRIPTION:
|
|
6
6
|
# Defaults to checking if ALL services in the given group are up; with
|
|
@@ -14,12 +14,8 @@
|
|
|
14
14
|
#
|
|
15
15
|
# DEPENDENCIES:
|
|
16
16
|
# gem: sensu-plugin
|
|
17
|
-
# gem: socket
|
|
18
|
-
# gem: csv
|
|
19
|
-
# gem: uri
|
|
20
17
|
#
|
|
21
18
|
# USAGE:
|
|
22
|
-
# #YELLOW
|
|
23
19
|
#
|
|
24
20
|
# NOTES:
|
|
25
21
|
#
|
data/bin/metrics-haproxy.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#! /usr/bin/env ruby
|
|
2
2
|
#
|
|
3
|
-
# metrics-haproxy
|
|
3
|
+
# metrics-haproxy.rb
|
|
4
4
|
#
|
|
5
5
|
# DESCRIPTION:
|
|
6
6
|
# If you are occassionally seeing "nil output" from this check, make sure you have
|
|
@@ -14,11 +14,6 @@
|
|
|
14
14
|
#
|
|
15
15
|
# DEPENDENCIES:
|
|
16
16
|
# gem: sensu-plugin
|
|
17
|
-
# gem: net/http
|
|
18
|
-
# gem: net/https
|
|
19
|
-
# gem: socket
|
|
20
|
-
# gem: csv
|
|
21
|
-
# gem: uri
|
|
22
17
|
#
|
|
23
18
|
# USAGE:
|
|
24
19
|
#
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
require 'sensu-plugins-haproxy/version'
|
|
3
|
+
|
|
4
|
+
# Load the defaults
|
|
5
|
+
|
|
1
6
|
#
|
|
2
|
-
#
|
|
7
|
+
# Default class
|
|
3
8
|
#
|
|
4
|
-
module
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
module SensuPluginsHAProxy
|
|
10
|
+
class << self
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class << self
|
|
14
|
+
end
|
|
7
15
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
# encoding: utf-8
|
|
4
|
+
module SensuPluginsHAProxy
|
|
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.3'].compact.join('.')
|
|
12
|
+
|
|
13
|
+
NAME = 'sensu-plugins-haproxy'
|
|
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-haproxy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1.alpha.
|
|
4
|
+
version: 0.0.1.alpha.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yieldbot, Inc. and contributors
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2015-
|
|
33
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: sensu-plugin
|
|
@@ -50,14 +50,14 @@ dependencies:
|
|
|
50
50
|
name: codeclimate-test-reporter
|
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- - "
|
|
53
|
+
- - "~>"
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
type: :development
|
|
57
57
|
prerelease: false
|
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- - "
|
|
60
|
+
- - "~>"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
- !ruby/object:Gem::Dependency
|
|
@@ -172,11 +172,9 @@ dependencies:
|
|
|
172
172
|
- - "~>"
|
|
173
173
|
- !ruby/object:Gem::Version
|
|
174
174
|
version: '0.10'
|
|
175
|
-
description: Sensu
|
|
175
|
+
description: Sensu plugins for working with haproxy
|
|
176
176
|
email: "<sensu-users@googlegroups.com>"
|
|
177
|
-
executables:
|
|
178
|
-
- check-haproxy.rb
|
|
179
|
-
- metrics-haproxy.rb
|
|
177
|
+
executables: []
|
|
180
178
|
extensions: []
|
|
181
179
|
extra_rdoc_files: []
|
|
182
180
|
files:
|
|
@@ -186,10 +184,14 @@ files:
|
|
|
186
184
|
- bin/check-haproxy.rb
|
|
187
185
|
- bin/metrics-haproxy.rb
|
|
188
186
|
- lib/sensu-plugins-haproxy.rb
|
|
187
|
+
- lib/sensu-plugins-haproxy/version.rb
|
|
189
188
|
homepage: https://github.com/sensu-plugins/sensu-plugins-haproxy
|
|
190
189
|
licenses:
|
|
191
190
|
- MIT
|
|
192
|
-
metadata:
|
|
191
|
+
metadata:
|
|
192
|
+
maintainer: ''
|
|
193
|
+
development_status: active
|
|
194
|
+
production_status: unstable - testing recommended
|
|
193
195
|
post_install_message:
|
|
194
196
|
rdoc_options: []
|
|
195
197
|
require_paths:
|
|
@@ -209,5 +211,6 @@ rubyforge_project:
|
|
|
209
211
|
rubygems_version: 2.2.2
|
|
210
212
|
signing_key:
|
|
211
213
|
specification_version: 4
|
|
212
|
-
summary: Sensu
|
|
214
|
+
summary: Sensu plugins for working with haproxy
|
|
213
215
|
test_files: []
|
|
216
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
|
Binary file
|