sensu-plugins-network-checks 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/README.md +4 -0
- data/bin/check-ping.rb +8 -1
- data/lib/sensu-plugins-network-checks/version.rb +1 -1
- metadata +27 -13
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16f8fb09182eab786865892f3afea1e1c80bb2d0
|
4
|
+
data.tar.gz: 7e0723138ab1aabf78a7752509c96bd987927187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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] =
|
87
|
+
result[i] = ping
|
81
88
|
end
|
82
89
|
|
83
90
|
successful_count = result.count(true)
|
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.
|
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-
|
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:
|
176
|
+
name: rdoc
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - "~>"
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
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:
|
188
|
+
version: 4.2.1
|
189
189
|
- !ruby/object:Gem::Dependency
|
190
|
-
name:
|
190
|
+
name: redcarpet
|
191
191
|
requirement: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
|
-
- -
|
193
|
+
- - "~>"
|
194
194
|
- !ruby/object:Gem::Version
|
195
|
-
version:
|
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:
|
202
|
+
version: '3.2'
|
203
203
|
- !ruby/object:Gem::Dependency
|
204
|
-
name:
|
204
|
+
name: rspec
|
205
205
|
requirement: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
207
|
- - "~>"
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: '3.
|
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.
|
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
|