sensu-plugins-logstash 0.0.2 → 0.0.3
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 +4 -1
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/bin/handler-logstash.rb +14 -14
- data/lib/sensu-plugins-logstash/version.rb +1 -1
- metadata +6 -6
- 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: 8b1163eb37e2871f1ceb59378ef0be9b30a364ed
|
4
|
+
data.tar.gz: 5376b59314d210e76bf87d9f21ebea4ed3eb8770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06bca02496f21d3ba527a11972a846b046f8866c5c6d3c5998fd4ec4ccb057f4f50fcd86650848e45076b4a0f261116efa7af8e7093aa338493f1d8081dc2a15
|
7
|
+
data.tar.gz: 7d08a15a0c7ef793f17f0bbe5f4c4041f0f8e64347d8ade2973bb03155f53165bb14a84b7fbc6fe4adcc81edc2d6f1cbcd18f1c93866173c6fce929edc6639c5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
3��X�S$�`cws��@�'�4��>̏�53��5��)4mf�c
|
2
|
+
��6�D$u�n�'{iV���)#�I���2%5�\�8}C
|
3
|
+
%��R�&9ѬJ�����*����#Ak���/֧S����$J�#|Ө��Iͨnu�)ժ7�Y@��+
|
4
|
+
�"�p�8+�v�P�'��X%l�j��.�G~�kXQ�B�%�֤c�x(y��A>�σ���h�PI��vj}]5>�M2_�o2,��ϵ�σ r��|X4IF�
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Sensu-Plugins-logstash
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash)
|
3
|
+
[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-logstash.svg)](http://badge.fury.io/rb/sensu-plugins-logstash)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash)
|
data/bin/handler-logstash.rb
CHANGED
@@ -64,20 +64,20 @@ class LogstashHandler < Sensu::Handler
|
|
64
64
|
def handle # rubocop:disable all
|
65
65
|
time = Time.now.utc.iso8601
|
66
66
|
logstash_msg = {
|
67
|
-
:@timestamp => time,
|
68
|
-
:@version => 1,
|
69
|
-
:source => ::Socket.gethostname,
|
70
|
-
:tags => ["sensu-#{action_to_string}"],
|
71
|
-
:message => @event['check']['output'],
|
72
|
-
:host => @event['client']['name'],
|
73
|
-
:timestamp => @event['check']['issued'],
|
74
|
-
:address => @event['client']['address'],
|
75
|
-
:check_name => @event['check']['name'],
|
76
|
-
:command => @event['check']['command'],
|
77
|
-
:status => event_status,
|
78
|
-
:flapping => @event['check']['flapping'],
|
79
|
-
:occurrences => @event['occurrences'],
|
80
|
-
:action => @event['action']
|
67
|
+
:@timestamp => time, # rubocop:disable Style/HashSyntax
|
68
|
+
:@version => 1, # rubocop:disable Style/HashSyntax
|
69
|
+
:source => ::Socket.gethostname, # rubocop:disable Style/HashSyntax
|
70
|
+
:tags => ["sensu-#{action_to_string}"], # rubocop:disable Style/HashSyntax
|
71
|
+
:message => @event['check']['output'], # rubocop:disable Style/HashSyntax
|
72
|
+
:host => @event['client']['name'], # rubocop:disable Style/HashSyntax
|
73
|
+
:timestamp => @event['check']['issued'], # rubocop:disable Style/HashSyntax
|
74
|
+
:address => @event['client']['address'], # rubocop:disable Style/HashSyntax
|
75
|
+
:check_name => @event['check']['name'], # rubocop:disable Style/HashSyntax
|
76
|
+
:command => @event['check']['command'], # rubocop:disable Style/HashSyntax
|
77
|
+
:status => event_status, # rubocop:disable Style/HashSyntax
|
78
|
+
:flapping => @event['check']['flapping'], # rubocop:disable Style/HashSyntax
|
79
|
+
:occurrences => @event['occurrences'], # rubocop:disable Style/HashSyntax
|
80
|
+
:action => @event['action'] # rubocop:disable Style/HashSyntax
|
81
81
|
}
|
82
82
|
logstash_msg[:type] = settings['logstash']['type'] if settings['logstash'].key?('type')
|
83
83
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-logstash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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-07-14 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.
|
41
|
+
version: 1.2.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.
|
48
|
+
version: 1.2.0
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: redis
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
name: rubocop
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0.30'
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0.30'
|
105
105
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|