sensu-plugins-sensu-plugins-fluentd 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -3
- data/CHANGELOG.md +13 -2
- data/README.md +1 -1
- data/bin/check-fluentd-monitor-agent.rb +10 -2
- data/bin/handler-fluentd.rb +1 -1
- data/lib/sensu-plugins-fluentd/version.rb +2 -2
- metadata +5 -5
- 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: 33f17bf90ee99a041056c918f9e8b1226acddf62
|
4
|
+
data.tar.gz: eab9d55881c808ace19288a6671d2bc896154267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b5cd78665a239bd3688260b2450161150df8387081fad8795f87e4252fa347b679a73f7bcbc6c294bacaa973b0144d33dd3a7233e5cbf30a548c4081a8b7660
|
7
|
+
data.tar.gz: 1820df6ef95c387b3343c3d4b2644dca7daa306699080d0bb1b81d36cd8af17a9348fd63a1e7203d23c412e9fb96d99c871ea1c861ee7941461df32e2e9d2223
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
J1t�.�]'/#�l�Eic�zR� �DR�?����;
|
1
|
+
_0 �w�f�'3<��
|
3
|
-
|
2
|
+
�
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## Unreleased
|
6
|
+
## Unreleased
|
7
|
+
|
8
|
+
[0.1.0] - 2015-12-03
|
9
|
+
### Added
|
10
|
+
- Added timeout option to check-fluentd-monitor-agent.rb
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Fix uninitialized constant Timeout error
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
- Updated to rubocop 0.32.1
|
7
17
|
|
8
18
|
## [0.0.3] - 2015-07-14
|
9
19
|
### Changed
|
@@ -20,4 +30,5 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
20
30
|
- added binstubs
|
21
31
|
|
22
32
|
### Changed
|
23
|
-
- removed cruft from /lib
|
33
|
+
- removed cruft from /lib
|
34
|
+
|
data/README.md
CHANGED
@@ -36,6 +36,6 @@ Fluentd Sensu handler
|
|
36
36
|
|
37
37
|
## Installation
|
38
38
|
|
39
|
-
[Installation and Setup](
|
39
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
40
40
|
|
41
41
|
## Notes
|
@@ -26,6 +26,7 @@
|
|
26
26
|
#
|
27
27
|
|
28
28
|
require 'sensu-plugin/check/cli'
|
29
|
+
require 'timeout'
|
29
30
|
require 'net/http'
|
30
31
|
require 'json'
|
31
32
|
|
@@ -52,9 +53,16 @@ class CheckFluentdMonitorAgent < Sensu::Plugin::Check::CLI
|
|
52
53
|
long: '--metric METRIC',
|
53
54
|
description: 'Check monitor_agent metric'
|
54
55
|
|
56
|
+
option :timeout,
|
57
|
+
short: '-t SECONDS',
|
58
|
+
long: '--timeout SECONDS',
|
59
|
+
description: 'Timeout value in seconds',
|
60
|
+
default: 5,
|
61
|
+
proc: proc(&:to_i)
|
62
|
+
|
55
63
|
# Main function
|
56
64
|
#
|
57
|
-
def run
|
65
|
+
def run
|
58
66
|
if !config[:metric]
|
59
67
|
critical 'No metric setting "buffer_queue_length", "retry_count"...'
|
60
68
|
elsif !config[:warn]
|
@@ -86,7 +94,7 @@ class CheckFluentdMonitorAgent < Sensu::Plugin::Check::CLI
|
|
86
94
|
# Reterive the json blob and check to make sure the user
|
87
95
|
# supplied meteric is not nil
|
88
96
|
#
|
89
|
-
def acquire_resource
|
97
|
+
def acquire_resource
|
90
98
|
http = Net::HTTP.new(config[:host], config[:port])
|
91
99
|
response = http.get(config[:request_uri])
|
92
100
|
result = JSON.parse(response.body)
|
data/bin/handler-fluentd.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-sensu-plugins-fluentd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins 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-12-03 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 0.32.1
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 0.32.1
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: rspec
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
215
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.4.
|
216
|
+
rubygems_version: 2.4.8
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: Sensu plugins for working with fluentd
|
metadata.gz.sig
CHANGED
Binary file
|