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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 966c6d352abaf1f266900e373b09e71429bc16fb
4
- data.tar.gz: 2ab44f3bfc1502576614efdb82e09186361667a9
3
+ metadata.gz: 33f17bf90ee99a041056c918f9e8b1226acddf62
4
+ data.tar.gz: eab9d55881c808ace19288a6671d2bc896154267
5
5
  SHA512:
6
- metadata.gz: 4d09fca3080c4e639374ecc1b4d6e3bd2f0e55d975ddaffd0da112bb8f041a4b81a9b0d434d0151abed6113d267ad96e142683c72eba50a6fbec05635442f4aa
7
- data.tar.gz: 2a15563fbb36b558b228ec6499b4732208a5f06ac12993e86b5665661b14f0c7ab9b3b50faef515b0e08898d261a797e0b4c96657283e72eca8cddaf610ba9f2
6
+ metadata.gz: 8b5cd78665a239bd3688260b2450161150df8387081fad8795f87e4252fa347b679a73f7bcbc6c294bacaa973b0144d33dd3a7233e5cbf30a548c4081a8b7660
7
+ data.tar.gz: 1820df6ef95c387b3343c3d4b2644dca7daa306699080d0bb1b81d36cd8af17a9348fd63a1e7203d23c412e9fb96d99c871ea1c861ee7941461df32e2e9d2223
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ��@�}��pXg)=��M����&:��?����ƃ���N�?a� >λ�n��'k��i;��y�������8����+����ZrR�7��g��~�~� �>�O�J\)#�Y����hNd�"��Sƹ����C,�(��� �H���'}�L@����z �_1�0�hzI���E�Y���B�qػV%���#�OoQ~NI-�|ss�"�y Z�
2
- J1t�.�]'/#�l�Eic� zR� �DR�?����;
1
+ _ 0 �wf�'3<��
3
- �� ������V5v�������?ݎrr �N��@��Z���'��t�
2
+
@@ -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][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](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
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 # rubocop:disable all
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 # rubocop:disable all
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)
@@ -63,7 +63,7 @@ class Fluentd < Sensu::Handler
63
63
 
64
64
  # main function
65
65
  #
66
- def handle # rubocop:disable all
66
+ def handle
67
67
  event = {
68
68
  action: action_to_string,
69
69
  name: event_name,
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsFluentd
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 0
5
- PATCH = 3
4
+ MINOR = 1
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.3
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-07-14 00:00:00.000000000 Z
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: '0.30'
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: '0.30'
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.6
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