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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 149debf34fd02532ad40f8ddbc09816e7f54a7de
4
- data.tar.gz: d4856ad7a150100df4056164277c8ee84599a793
3
+ metadata.gz: 584d6af8dd475684a3a2a3c249267fe64c8e09c5
4
+ data.tar.gz: 94cfedd800cafdcc15781a9b72482388adfcbc83
5
5
  SHA512:
6
- metadata.gz: 4889f1e43af60b1912bb73fce9bb25811ea165a094e2b5b6bc6d5b4423550b48d6009137fb28694830a48f33b34389c470cfdff719db274ffcc311b666acca80
7
- data.tar.gz: 409469112ef69c411f9fa5628f7b71ad6676b0904918e48afd3290af9e0f1e62733d7a2e547a20073dc358cb88ec3d60395f2655522e015f37760eba70759c0b
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.0.0...HEAD
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)
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsSnmp
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.0.0
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-07-04 00:00:00.000000000 Z
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.4.5
218
+ rubygems_version: 2.6.13
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Sensu plugins for SNMP