sensu-plugins-snmp 1.0.0 → 1.1.0
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 +6 -1
- data/bin/check-snmp.rb +5 -0
- data/lib/sensu-plugins-snmp/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 584d6af8dd475684a3a2a3c249267fe64c8e09c5
|
4
|
+
data.tar.gz: 94cfedd800cafdcc15781a9b72482388adfcbc83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeb5a058ec7e1e5f5b40f922d47e7915fac1149034bc8276b57fb173968df5eb1190a969f091440027e38baf1bf052cc314d8c4f782f64504069cdf2e057ef45
|
7
|
+
data.tar.gz: 88cea9083734a03bda1b414fa8d440dbc65ff8172416d5d8ec899eb18954d2c1ce7520b695bd4398ce19f6fb49601cdc2371f96b4e8037e9d0d7f31d7a735aa9
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.1.0] - 2017-10-04
|
9
|
+
### Added
|
10
|
+
- check-snmp.rb: added `--port` option (@freepenguins)
|
11
|
+
|
8
12
|
## [1.0.0] - 2017-07-04
|
9
13
|
### Added
|
10
14
|
- Ruby 2.3.0 testing (@Evesy)
|
@@ -48,7 +52,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
48
52
|
### Added
|
49
53
|
- initial release
|
50
54
|
|
51
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-snmp/compare/1.
|
55
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-snmp/compare/1.1.0...HEAD
|
56
|
+
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-snmp/compare/1.0.0...1.1.0
|
52
57
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-snmp/compare/0.2.0...1.0.0
|
53
58
|
[0.2.0]: https://github.com/sensu-plugins/sensu-plugins-snmp/compare/0.1.0...0.2.0
|
54
59
|
[0.1.0]: https://github.com/sensu-plugins/sensu-plugins-snmp/compare/0.0.4...0.1.0
|
data/bin/check-snmp.rb
CHANGED
@@ -30,6 +30,10 @@ class CheckSNMP < Sensu::Plugin::Check::CLI
|
|
30
30
|
short: '-h host',
|
31
31
|
default: '127.0.0.1'
|
32
32
|
|
33
|
+
option :port,
|
34
|
+
short: '-p port',
|
35
|
+
default: '161'
|
36
|
+
|
33
37
|
option :community,
|
34
38
|
short: '-C snmp community',
|
35
39
|
default: 'public'
|
@@ -81,6 +85,7 @@ class CheckSNMP < Sensu::Plugin::Check::CLI
|
|
81
85
|
def run
|
82
86
|
begin
|
83
87
|
manager = SNMP::Manager.new(host: config[:host].to_s,
|
88
|
+
port: config[:port].to_i,
|
84
89
|
community: config[:community].to_s,
|
85
90
|
version: config[:snmp_version].to_sym,
|
86
91
|
timeout: config[:timeout].to_i)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-snmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
217
|
rubyforge_project:
|
218
|
-
rubygems_version: 2.
|
218
|
+
rubygems_version: 2.6.13
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: Sensu plugins for SNMP
|