logstash-input-snmp 0.1.0.beta3 → 0.1.0.beta4

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
  SHA256:
3
- metadata.gz: 4cbe158bdaf1a09765f4f5590c770c85cd5005a094ee867ac97b720f39b69bab
4
- data.tar.gz: 4be94637f117dd5e5e31d29c58c25e8c50aa307266f4b15b37bc749dcee3e462
3
+ metadata.gz: 47e2417cd4748a579620be35c59d571e7a503a334c10d74fd3744c33432bd262
4
+ data.tar.gz: f625f7821f9470bf97da4d527c3f729fcd809e6d0367aba899c9168d0ac33315
5
5
  SHA512:
6
- metadata.gz: dbe55fe3d13e49d62c4a7376aef50f3daf38e19aeaddcb9dd32c933d648a1dc2fb69adb6625e3cc24d05559cf20faa25bf6785192299ae5da3781c1bf7a240fd
7
- data.tar.gz: 8f93b7fbb5005b8c4321e7d39534b7f2a540da3f2aa0b6d30c433d66f59578bcf5af042db64533fd54b2869404aff9ecf0af4bd6feb91f4f1400c33511ffe1cd
6
+ metadata.gz: d708cb916fed7cc63dec16a548067e26edc4437feacdf7dd906d9289dc460c91e7333fe3f747d6de6613e2c586973001714404b06f6e5e7d9c8ca95c395a3ce2
7
+ data.tar.gz: 7463c5d563036eeafbcc0ea038d777b56f4e544575bf0d1a76cafef395605626357b1f975376838f27f7b3faa995f0974044d22cc229766fd2415eea6cce6206
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.0.beta4
2
+ - Fixed missing coercions [#12](https://github.com/logstash-plugins/logstash-input-snmp/pull/12)
3
+
1
4
  ## 0.1.0.beta3
2
5
  - add tcp transport protocol support, https://github.com/logstash-plugins/logstash-input-snmp/pull/8
3
6
  - add SNMPv1 protocol version support, https://github.com/logstash-plugins/logstash-input-snmp/pull/9
@@ -104,13 +104,15 @@ module LogStash
104
104
 
105
105
  private
106
106
 
107
+ NULL_STRING = "null".freeze
108
+
107
109
  def coerce(variable)
108
110
  variable_syntax = variable.getSyntax
109
111
  # puts("variable.getSyntaxString=#{variable.getSyntaxString}")
110
112
  case variable_syntax
111
- when BER::OCTETSTRING
113
+ when BER::OCTETSTRING, BER::BITSTRING
112
114
  variable.toString
113
- when BER::TIMETICKS, BER::COUNTER, BER::COUNTER32
115
+ when BER::TIMETICKS, BER::COUNTER, BER::COUNTER32, BER::COUNTER64
114
116
  variable.toLong
115
117
  when BER::INTEGER, BER::INTEGER32, BER::GAUGE, BER::GAUGE32
116
118
  variable.toInt
@@ -118,6 +120,8 @@ module LogStash
118
120
  variable.toString
119
121
  when BER::OID
120
122
  variable.toString
123
+ when BER::NULL
124
+ NULL_STRING
121
125
  when BER::NOSUCHOBJECT
122
126
  "Error: No Such Instance currently exists at this OID"
123
127
  else
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-snmp'
3
- s.version = '0.1.0.beta3'
3
+ s.version = '0.1.0.beta4'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "SNMP input plugin"
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/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-snmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta3
4
+ version: 0.1.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement