logstash-output-snmptrap-v2 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/snmptrap.rb +1 -3
- data/logstash-output-snmptrap.gemspec +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08028240baa2ddb9fa1bbfc84cbd0fbd622502ed34d136f10fa5e7c0592766ec'
|
4
|
+
data.tar.gz: 68d70ff53fc42428fc603d1061ac5261fa321fe4ea3910380d31e052e3c7f89a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 457d44e7d6ee7f29724744b0ddce5a18559bdbab939d5aa0b9845078f269ee5271f9c097ae9125edd1405a524e005fc04cba174fafd8745ef1936eddb12bde15
|
7
|
+
data.tar.gz: 1101570d0702870cf5731ffeb6ca1be6e4994c6670119fc170081537d5d1d8fb4824b82182cff85b2a49a0d425483832c5146668a9e4b59f3dcefdacd544db46
|
@@ -48,10 +48,8 @@ class LogStash::Outputs::Snmptrap < LogStash::Outputs::Base
|
|
48
48
|
value.delete_prefix!("@")
|
49
49
|
value = event.get(value)
|
50
50
|
end
|
51
|
-
|
51
|
+
unless value.nil?
|
52
52
|
varbinds << SNMP::VarBind.new(key, SNMP::OctetString.new(value.force_encoding('ASCII-8BIT')))
|
53
|
-
elsif value.is_a? Integer
|
54
|
-
varbinds << SNMP::VarBind.new(key, SNMP::Integer.new(value))
|
55
53
|
end
|
56
54
|
end
|
57
55
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-snmptrap-v2'
|
3
|
-
s.version = '0.9.
|
3
|
+
s.version = '0.9.4'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = 'SNMP Output for Logstash'
|
6
6
|
s.description = 'This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-snmptrap-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcel Vingerling
|
@@ -89,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
|
-
|
93
|
-
rubygems_version: 2.7.6
|
92
|
+
rubygems_version: 3.0.3
|
94
93
|
signing_key:
|
95
94
|
specification_version: 4
|
96
95
|
summary: SNMP Output for Logstash
|