sensu-plugins-network-checks 0.1.3 → 0.1.4

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: f95fd3961c18321fcb385bc5c1a60efacf1a3050
4
- data.tar.gz: 078f595ed9bab70f5e9000d0a9bf832d61d8d876
3
+ metadata.gz: 16f8fb09182eab786865892f3afea1e1c80bb2d0
4
+ data.tar.gz: 7e0723138ab1aabf78a7752509c96bd987927187
5
5
  SHA512:
6
- metadata.gz: 8ed79b23eda15e7588f2274c7ee7f01df3d79db50855c68cc7c2420eba038ddfd4cf018c944b677257325c411b8efa23b81684ff21956a5e228a34f64223af5e
7
- data.tar.gz: 99ad07554c717051ed4de6f06a52d5f4e6e0be3356a5603cf17f7bbce136e5df7775382387ae5260f8d092419bcf0e55dc099ed4efb4c8e8245411a52038b536
6
+ metadata.gz: cd1b8147750d264cf05386b3c4d43608545cdf8fb1ce0da9e2ed6dd6504855d6bd6cf2699ef4d847f67e4202a9008b731f765c096d6054031b51a0f40ca69793
7
+ data.tar.gz: f91b715b19dde140858acff10fe1ca1fdb2ab1518e60101e911d7129c7f62fc97024c62cd28289d36ac79bcf3f9d4dd674809bb421fe25dfea021612ae0b8081
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
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
+ ## [0.1.4] - 2016-01-22
9
+ ### Added
10
+ - IPv6 support for check-ping
11
+
8
12
  ## [0.1.3] - 2016-01-15
9
13
  ### Added
10
14
  - Added check-socat.rb
data/README.md CHANGED
@@ -11,18 +11,22 @@
11
11
  ## Files
12
12
  * bin/check-banner.rb
13
13
  * bin/check-jsonwhois-domain-expiration.rb
14
+ * bin/check-mtu.rb
14
15
  * bin/check-multicast-groups.rb
15
16
  * bin/check-netstat-tcp.rb
16
17
  * bin/check-ping.rb
17
18
  * bin/check-ports-nmap.rb
18
19
  * bin/check-ports.rb
19
20
  * bin/check-rbl.rb
21
+ * bin/check-socat.rb
20
22
  * bin/check-whois-domain-expiration-multi.rb
21
23
  * bin/check-whois-domain-expiration.rb
22
24
  * bin/metrics-interface.rb
23
25
  * bin/metrics-net.rb
24
26
  * bin/metrics-netif.rb
25
27
  * bin/metrics-netstat-tcp.rb
28
+ * bin/metrics-ping.rb
29
+ * bin/metrics-sockstat.rb
26
30
 
27
31
  ## Usage
28
32
 
data/bin/check-ping.rb CHANGED
@@ -37,6 +37,12 @@ class CheckPING < Sensu::Plugin::Check::CLI
37
37
  short: '-h host',
38
38
  default: 'localhost'
39
39
 
40
+ option :ipv6,
41
+ short: '-6',
42
+ long: '--ipv6',
43
+ description: 'Ping IPv6 address',
44
+ default: false
45
+
40
46
  option :timeout,
41
47
  short: '-T timeout',
42
48
  proc: proc(&:to_i),
@@ -75,9 +81,10 @@ class CheckPING < Sensu::Plugin::Check::CLI
75
81
  def run
76
82
  result = []
77
83
  pt = Net::Ping::External.new(config[:host], nil, config[:timeout])
84
+ config[:ipv6] ? (ping = pt.ping6) : (ping = pt.ping)
78
85
  config[:count].times do |i|
79
86
  sleep(config[:interval]) unless i == 0
80
- result[i] = pt.ping?
87
+ result[i] = ping
81
88
  end
82
89
 
83
90
  successful_count = result.count(true)
@@ -2,7 +2,7 @@ module SensuPluginsNetworkChecks
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-network-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2016-01-15 00:00:00.000000000 Z
33
+ date: 2016-01-22 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: dnsbl-client
@@ -173,47 +173,61 @@ dependencies:
173
173
  - !ruby/object:Gem::Version
174
174
  version: '10.0'
175
175
  - !ruby/object:Gem::Dependency
176
- name: rspec
176
+ name: rdoc
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - "~>"
180
180
  - !ruby/object:Gem::Version
181
- version: '3.1'
181
+ version: 4.2.1
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
- version: '3.1'
188
+ version: 4.2.1
189
189
  - !ruby/object:Gem::Dependency
190
- name: rubocop
190
+ name: redcarpet
191
191
  requirement: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - '='
193
+ - - "~>"
194
194
  - !ruby/object:Gem::Version
195
- version: 0.32.1
195
+ version: '3.2'
196
196
  type: :development
197
197
  prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - '='
200
+ - - "~>"
201
201
  - !ruby/object:Gem::Version
202
- version: 0.32.1
202
+ version: '3.2'
203
203
  - !ruby/object:Gem::Dependency
204
- name: redcarpet
204
+ name: rspec
205
205
  requirement: !ruby/object:Gem::Requirement
206
206
  requirements:
207
207
  - - "~>"
208
208
  - !ruby/object:Gem::Version
209
- version: '3.2'
209
+ version: '3.1'
210
210
  type: :development
211
211
  prerelease: false
212
212
  version_requirements: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - "~>"
215
215
  - !ruby/object:Gem::Version
216
- version: '3.2'
216
+ version: '3.1'
217
+ - !ruby/object:Gem::Dependency
218
+ name: rubocop
219
+ requirement: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - '='
222
+ - !ruby/object:Gem::Version
223
+ version: 0.32.1
224
+ type: :development
225
+ prerelease: false
226
+ version_requirements: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - '='
229
+ - !ruby/object:Gem::Version
230
+ version: 0.32.1
217
231
  - !ruby/object:Gem::Dependency
218
232
  name: yard
219
233
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file