logstash-input-snmp 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -4
- data/docs/index.asciidoc +12 -0
- data/lib/logstash/inputs/snmp/client.rb +1 -1
- data/logstash-input-snmp.gemspec +1 -1
- data/spec/inputs/snmp_spec.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 149791948ca146c248ba111642501748a2c0eacedc6b5774e4c8dd02ce9fb746
|
4
|
+
data.tar.gz: e5ac1d8d8d52481ea6b57a37ec09428a36b88c4c374c379aad3d5950c326e24a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa32f9ecea52e10fcf38ece4ac80f2037da7a3dfed55560decba78eb80bdfc559a22952d8d85b83e44fbedcbe667b5f01d21d037406eea55a09fa5a684d4cee
|
7
|
+
data.tar.gz: ec8eca95c464381397b581260803d238d1fb1bf57bd7ae8add5d2718aa438509f0be70473592ba07bb12d19abe5a8aaff49cb5208b010aff283e92782a91c4a4
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,17 @@
|
|
1
|
+
## 1.2.6
|
2
|
+
- Docs: example on setting IPv6 hosts [#89](https://github.com/logstash-plugins/logstash-input-snmp/pull/89)
|
3
|
+
|
1
4
|
## 1.2.5
|
2
|
-
-
|
5
|
+
- Updated snmp4j library to v2.8.4 [#86](https://github.com/logstash-plugins/logstash-input-snmp/pull/86)
|
3
6
|
|
4
7
|
## 1.2.4
|
5
|
-
-
|
8
|
+
- Fixed: support SNMPv3 multiple identical security name with different credentials [#84](https://github.com/logstash-plugins/logstash-input-snmp/pull/84)
|
6
9
|
|
7
10
|
## 1.2.3
|
8
|
-
-
|
11
|
+
- Fixed: multithreading problem when using multiple snmp inputs with multiple v3 credentials [#80](https://github.com/logstash-plugins/logstash-input-snmp/pull/80)
|
9
12
|
|
10
13
|
## 1.2.2
|
11
|
-
-
|
14
|
+
- Refactor: scope and review java_imports [#72](https://github.com/logstash-plugins/logstash-input-snmp/pull/72)
|
12
15
|
|
13
16
|
## 1.2.1
|
14
17
|
- Fixed GAUGE32 integer overflow [#65](https://github.com/logstash-plugins/logstash-input-snmp/pull/65)
|
data/docs/index.asciidoc
CHANGED
@@ -147,6 +147,18 @@ input {
|
|
147
147
|
}
|
148
148
|
-----
|
149
149
|
|
150
|
+
*Specifying IPv6 hosts*
|
151
|
+
|
152
|
+
[source,ruby]
|
153
|
+
-----
|
154
|
+
input {
|
155
|
+
snmp {
|
156
|
+
get => ["1.3.6.1.2.1.1.1.0"]
|
157
|
+
hosts => [{host => "udp:[::1]/161" community => "public"}, {host => "udp:[2001:db8::2:1]/161" community => "private"}]
|
158
|
+
}
|
159
|
+
}
|
160
|
+
-----
|
161
|
+
|
150
162
|
[id="plugins-{type}s-{plugin}-interval"]
|
151
163
|
===== `interval`
|
152
164
|
|
@@ -17,7 +17,7 @@ module LogStash
|
|
17
17
|
|
18
18
|
def initialize(protocol, address, port, community, version, retries, timeout, mib)
|
19
19
|
super(protocol, address, port, retries, timeout, mib)
|
20
|
-
raise(SnmpClientError, "SnmpClient is expecting
|
20
|
+
raise(SnmpClientError, "SnmpClient is expecting version '1' or '2c'") unless ["1", "2c"].include?(version.to_s)
|
21
21
|
|
22
22
|
@snmp = Snmp.new(create_transport(protocol))
|
23
23
|
@snmp.listen
|
data/logstash-input-snmp.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-snmp'
|
3
|
-
s.version = '1.2.
|
3
|
+
s.version = '1.2.6'
|
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"
|
data/spec/inputs/snmp_spec.rb
CHANGED
@@ -70,6 +70,10 @@ describe LogStash::Inputs::Snmp do
|
|
70
70
|
{"get" => ["1.0"], "hosts" => [{"host" => "udp:127.0.0.1/161", "version" => "1"}]},
|
71
71
|
{"get" => ["1.0"], "hosts" => [{"host" => "udp:127.0.0.1/161", "version" => "2c"}]},
|
72
72
|
{"get" => ["1.0"], "hosts" => [{"host" => "udp:127.0.0.1/161", "version" => "3"}], "security_name" => "v3user"},
|
73
|
+
|
74
|
+
{"get" => ["1.0"], "hosts" => [{"host" => "udp:[::1]/16100"}]},
|
75
|
+
{"get" => ["1.0"], "hosts" => [{"host" => "udp:[2001:db8:0:1:1:1:1:1]/16100"}]},
|
76
|
+
{"get" => ["1.0"], "hosts" => [{"host" => "udp:[2001:db8::2:1]/161"}]},
|
73
77
|
]
|
74
78
|
}
|
75
79
|
|
@@ -105,7 +109,7 @@ describe LogStash::Inputs::Snmp do
|
|
105
109
|
let(:valid_configs) {
|
106
110
|
[
|
107
111
|
{"get" => ["1.0"], "hosts" => [{"host" => "udp:127.0.0.1/161", "version" => "3"}], "security_name" => "ciscov3", "auth_protocol" => "sha", "auth_pass" => "myshapass", "priv_protocol" => "aes", "priv_pass" => "myprivpass", "security_level" => "authNoPriv"},
|
108
|
-
{"get" => ["1.0"], "hosts" => [{"host" => "udp:
|
112
|
+
{"get" => ["1.0"], "hosts" => [{"host" => "udp:[2001:db8:0:1:1:1:1:1]/1610", "version" => "3"}], "security_name" => "dellv3", "auth_protocol" => "md5", "auth_pass" => "myshapass", "priv_protocol" => "3des", "priv_pass" => "myprivpass", "security_level" => "authNoPriv"}
|
109
113
|
]
|
110
114
|
}
|
111
115
|
|
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: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elasticsearch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|