sensu-plugins-network-checks 0.1.4 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG.md +24 -1
- data/README.md +0 -1
- data/bin/check-banner.rb +19 -9
- data/bin/check-multicast-groups.rb +1 -1
- data/bin/check-netfilter-conntrack.rb +6 -0
- data/bin/check-netfilter-conntrack.sh +54 -0
- data/bin/check-netstat-tcp.rb +1 -1
- data/bin/check-ports-nmap.rb +2 -2
- data/bin/check-ports.rb +19 -13
- data/bin/check-rbl.rb +3 -3
- data/bin/metrics-interface.rb +1 -1
- data/bin/metrics-netif.rb +1 -1
- data/bin/metrics-netstat-tcp.rb +2 -2
- data/bin/metrics-ping.rb +16 -10
- data/bin/metrics-sockstat.rb +2 -2
- data/lib/sensu-plugins-network-checks/version.rb +1 -1
- metadata +57 -77
- checksums.yaml.gz.sig +0 -2
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWVlMjgyYjZhNjBhZWU5Njc4YjFlYWNiNTk1Yjg5NGNiYjRlOWE4Mw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzA1MDA2ZWM2NDg3NzRlNjVjMDJmM2FhNzEzN2M3NDM2ZjYxMjVkMQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NmE4ZDdjYTBlODZkMmI5ZmE5MGJmMmIyMDE2ZjgxOTNmZmRlODI2YWJmNjE2
|
10
|
+
NzdmOTcxMGFiNTYzMjY4M2NlZWEyYzcyYzdlNTQ3NjRkYTk0NmViYmExMTc5
|
11
|
+
MzgxMmVjMzQ2NmVkZmJjMDIxYzE3NDlhNGNiYWQ0MmU2ZDU5ZWQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZTQ3MzIxNTM2ODM2NTg3OTRhM2Q0YWUxODhlZjI0YzEyOTIyNTYzOTE1Mjdm
|
14
|
+
M2RkMTJjODExYWE5MjBkZjhkZDVjMTM2MjZmMGQzNTk1YjY5NmQ1ZjIwZDg4
|
15
|
+
OWJjOTI3ZDE4YmQ0MWY4MjVkMTM1Zjk1NjVkYzlhZjBlYWEzNGU=
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## Unreleased
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [0.2.4] - 2016-04-02
|
9
|
+
### Fixed
|
10
|
+
- metrics-ping.rb: Fix error when a host can't be pinged. Convert to a proper metrics check.
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- basic check for netfilter conntrack
|
14
|
+
- Option for newline character in write string for check-banner
|
7
15
|
|
8
16
|
## [0.1.4] - 2016-01-22
|
9
17
|
### Added
|
@@ -120,3 +128,18 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
120
128
|
#### 0.0.1.alpha.1
|
121
129
|
|
122
130
|
* initial release, same as community repo
|
131
|
+
|
132
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.2.4...HEAD
|
133
|
+
[0.2.4]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.1.4...0.2.4
|
134
|
+
[0.1.4]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.1.3...0.1.4
|
135
|
+
[0.1.3]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.1.2...0.1.3
|
136
|
+
[0.1.2]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.1.1...0.1.2
|
137
|
+
[0.1.1]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.1.0...0.Ï.1
|
138
|
+
[0.1.0]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.8...0.1.0
|
139
|
+
[0.0.7]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.7...0.0.8
|
140
|
+
[0.0.7]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.6...0.0.7
|
141
|
+
[0.0.6]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.5...0.0.6
|
142
|
+
[0.0.5]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.4...0.0.5
|
143
|
+
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.3...0.0.4
|
144
|
+
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.2...0.0.3
|
145
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-network-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-network-checks)
|
5
5
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-network-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-network-checks)
|
6
6
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-network-checks.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-network-checks)
|
7
|
-
[![Codeship Status for sensu-plugins/sensu-plugins-network-checks](https://codeship.com/projects/d8090610-d234-0132-faa9-267aebe4cf02/status?branch=master)](https://codeship.com/projects/77474)
|
8
7
|
|
9
8
|
## Functionality
|
10
9
|
|
data/bin/check-banner.rb
CHANGED
@@ -59,6 +59,13 @@ class CheckBanner < Sensu::Plugin::Check::CLI
|
|
59
59
|
long: '--write STRING',
|
60
60
|
description: 'write STRING to the socket'
|
61
61
|
|
62
|
+
option :exclude_newline,
|
63
|
+
short: '-e',
|
64
|
+
long: '--exclude_newline',
|
65
|
+
description: 'Exclude newline character at end of write STRING',
|
66
|
+
boolean: true,
|
67
|
+
default: false
|
68
|
+
|
62
69
|
option :pattern,
|
63
70
|
short: '-q PAT',
|
64
71
|
long: '--pattern PAT',
|
@@ -97,7 +104,10 @@ class CheckBanner < Sensu::Plugin::Check::CLI
|
|
97
104
|
def acquire_banner(host)
|
98
105
|
timeout(config[:timeout]) do
|
99
106
|
sock = TCPSocket.new(host, config[:port])
|
100
|
-
|
107
|
+
if config[:write]
|
108
|
+
sock.write config[:write]
|
109
|
+
sock.write "\n" unless config[:exclude_newline]
|
110
|
+
end
|
101
111
|
if config[:read_till] == 'EOF'
|
102
112
|
sock.gets(nil)
|
103
113
|
else
|
@@ -118,14 +128,14 @@ class CheckBanner < Sensu::Plugin::Check::CLI
|
|
118
128
|
timeout(config[:timeout]) do
|
119
129
|
TCPSocket.new(host, config[:port])
|
120
130
|
end
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
131
|
+
rescue Errno::ECONNREFUSED
|
132
|
+
critical "Connection refused by #{host}:#{config[:port]}"
|
133
|
+
rescue Timeout::Error
|
134
|
+
critical 'Connection or read timed out'
|
135
|
+
rescue Errno::EHOSTUNREACH
|
136
|
+
critical 'Check failed to run: No route to host'
|
137
|
+
rescue EOFError
|
138
|
+
critical 'Connection closed unexpectedly'
|
129
139
|
end
|
130
140
|
|
131
141
|
def run
|
@@ -64,7 +64,7 @@ class CheckMulticastGroups < Sensu::Plugin::Check::CLI
|
|
64
64
|
expected = Set.new(targets)
|
65
65
|
|
66
66
|
diff = expected.difference(actual)
|
67
|
-
if diff.size > 0
|
67
|
+
if diff.size > 0 # rubocop:disable Style/ZeroLengthPredicate
|
68
68
|
diff_output = diff.map { |iface, addr| "#{iface}\t#{addr}" }.join("\n")
|
69
69
|
critical "#{diff.size} missing multicast group(s):\n#{diff_output}"
|
70
70
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
#
|
3
|
+
# Check Net Filter Connection Track Table Usage
|
4
|
+
# ===
|
5
|
+
#
|
6
|
+
# DESCRIPTION:
|
7
|
+
# This plugin provides a method for monitoring the percentage used of the nf_conntrack hash
|
8
|
+
#
|
9
|
+
# OUTPUT:
|
10
|
+
# plain-text
|
11
|
+
#
|
12
|
+
# PLATFORMS:
|
13
|
+
# Linux
|
14
|
+
#
|
15
|
+
# DEPENDENCIES:
|
16
|
+
#
|
17
|
+
# Copyright 2014 Yieldbot, Inc <devops@yieldbot.com>
|
18
|
+
#
|
19
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
20
|
+
# for details.
|
21
|
+
|
22
|
+
# CLI Options
|
23
|
+
while getopts ':w:c:' OPT; do
|
24
|
+
case $OPT in
|
25
|
+
w) WARN=$OPTARG;;
|
26
|
+
c) CRIT=$OPTARG;;
|
27
|
+
esac
|
28
|
+
done
|
29
|
+
|
30
|
+
WARN=${WARN:=100}
|
31
|
+
CRIT=${CRIT:=100}
|
32
|
+
|
33
|
+
# Get the max connections
|
34
|
+
MAX=$(sysctl net.netfilter.nf_conntrack_max | awk '{ print $3 }')
|
35
|
+
|
36
|
+
# Get the current connections
|
37
|
+
CURR=$(sysctl net.netfilter.nf_conntrack_count | awk '{ print $3 }')
|
38
|
+
|
39
|
+
# Percent usage of conncetions
|
40
|
+
PERCENT=$(echo "scale=3; $CURR / $MAX *100" | bc -l | cut -d "." -f1)
|
41
|
+
|
42
|
+
# If percent isnt defined set it to 0
|
43
|
+
PERCENT=${PERCENT:=0}
|
44
|
+
|
45
|
+
if [[ $PERCENT -ge $CRIT ]] ; then
|
46
|
+
echo "NETFILTER CONNTRACK CRITICAL - $PERCENT"
|
47
|
+
exit 2
|
48
|
+
elif [[ $PERCENT -ge $WARN ]] ; then
|
49
|
+
echo "NETFILTER CONNTRACK WARNING - $PERCENT"
|
50
|
+
exit 1
|
51
|
+
else
|
52
|
+
echo "NETFILTER CONNTRACK OK - $PERCENT"
|
53
|
+
exit 0
|
54
|
+
fi
|
data/bin/check-netstat-tcp.rb
CHANGED
data/bin/check-ports-nmap.rb
CHANGED
@@ -78,9 +78,9 @@ class CheckPorts < Sensu::Plugin::Check::CLI
|
|
78
78
|
|
79
79
|
if check_pass
|
80
80
|
ok result
|
81
|
-
elsif config[:level].
|
81
|
+
elsif config[:level].casecmp('WARN').zero?
|
82
82
|
warning result
|
83
|
-
elsif config[:level].
|
83
|
+
elsif config[:level].casecmp('CRIT').zero?
|
84
84
|
critical result
|
85
85
|
else
|
86
86
|
unknown "Unknown alert level #{config[:level]}"
|
data/bin/check-ports.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
#
|
3
3
|
# encoding: UTF-8
|
4
|
-
# check-ports
|
4
|
+
# check-ports
|
5
5
|
#
|
6
6
|
# DESCRIPTION:
|
7
|
-
# Connect to a TCP port on one or more ports, to see if open. Don't use nmap since it's overkill.
|
7
|
+
# Connect to a TCP/UDP port on one or more ports, to see if open. Don't use nmap since it's overkill.
|
8
8
|
#
|
9
9
|
# OUTPUT:
|
10
10
|
# plain text
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# USAGE:
|
19
19
|
#
|
20
20
|
# Ports are comma separated and support ranges
|
21
|
-
# ./check-ports.rb -H localhost -p 22,25,8100-8131,3030
|
21
|
+
# ./check-ports.rb -H localhost -p 22,25,8100-8131,3030 -P tcp
|
22
22
|
#
|
23
23
|
# NOTES:
|
24
24
|
# By default, checks for openssh on localhost port 22
|
@@ -48,6 +48,12 @@ class CheckPort < Sensu::Plugin::Check::CLI
|
|
48
48
|
description: 'Ports to check, comma separated (22,25,8100-8131,3030)',
|
49
49
|
default: '22'
|
50
50
|
|
51
|
+
option :proto,
|
52
|
+
short: '-P PROTOCOL',
|
53
|
+
long: '--protocol PROTOCOL',
|
54
|
+
description: 'Protocol to check: tcp (default) or udp',
|
55
|
+
default: 'tcp'
|
56
|
+
|
51
57
|
option :timeout,
|
52
58
|
short: '-t SECS',
|
53
59
|
long: '--timeout SECS',
|
@@ -57,16 +63,16 @@ class CheckPort < Sensu::Plugin::Check::CLI
|
|
57
63
|
|
58
64
|
def check_port(port)
|
59
65
|
timeout(config[:timeout]) do
|
60
|
-
TCPSocket.new(config[:host], port.to_i)
|
66
|
+
config[:proto].casecmp('tcp').zero? ? TCPSocket.new(config[:host], port.to_i) : UDPSocket.open.connect(config[:host], port.to_i)
|
61
67
|
end
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
68
|
+
rescue Errno::ECONNREFUSED
|
69
|
+
critical "Connection refused by #{config[:host]}:#{port}"
|
70
|
+
rescue Timeout::Error
|
71
|
+
critical "Connection or read timed out (#{config[:host]}:#{port})"
|
72
|
+
rescue Errno::EHOSTUNREACH
|
73
|
+
critical "Check failed to run: No route to host (#{config[:host]}:#{port})"
|
74
|
+
rescue EOFError
|
75
|
+
critical "Connection closed unexpectedly (#{config[:host]}:#{port})"
|
70
76
|
end
|
71
77
|
|
72
78
|
def run
|
@@ -87,7 +93,7 @@ class CheckPort < Sensu::Plugin::Check::CLI
|
|
87
93
|
if okarray.size == ports.size
|
88
94
|
ok "All ports (#{config[:ports]}) are accessible for host #{config[:host]}"
|
89
95
|
else
|
90
|
-
|
96
|
+
warning "port count or pattern #{config[:pattern]} does not match" unless config[:crit_message]
|
91
97
|
end
|
92
98
|
end
|
93
99
|
end
|
data/bin/check-rbl.rb
CHANGED
@@ -72,7 +72,7 @@ class RblCheck < Sensu::Plugin::Check::CLI
|
|
72
72
|
critical_bls_set = critical_bls.split(',').to_set
|
73
73
|
end
|
74
74
|
|
75
|
-
dnsbl_ret = c.lookup(
|
75
|
+
dnsbl_ret = c.lookup(ip_add.to_s)
|
76
76
|
msg_string = ''
|
77
77
|
criticality = 0
|
78
78
|
|
@@ -80,7 +80,7 @@ class RblCheck < Sensu::Plugin::Check::CLI
|
|
80
80
|
dnsbl_ret.each do |dnsbl_result|
|
81
81
|
if dnsbl_result.meaning =~ /spam/i || dnsbl_result.meaning =~ /blacklist/i
|
82
82
|
unless ignored_bls_set.member?(dnsbl_result.dnsbl)
|
83
|
-
msg_string =
|
83
|
+
msg_string = "#{msg_string} #{dnsbl_result.dnsbl}"
|
84
84
|
end
|
85
85
|
|
86
86
|
criticality += 1 if critical_bls_set.member?(dnsbl_result.dnsbl)
|
@@ -96,7 +96,7 @@ class RblCheck < Sensu::Plugin::Check::CLI
|
|
96
96
|
end
|
97
97
|
else
|
98
98
|
msg_txt = "All is well. #{ip_add} has good reputation."
|
99
|
-
ok
|
99
|
+
ok msg_txt.to_s
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
data/bin/metrics-interface.rb
CHANGED
@@ -68,7 +68,7 @@ class InterfaceGraphite < Sensu::Plugin::Metric::CLI::Graphite
|
|
68
68
|
next if config[:excludeinterface] && config[:excludeinterface].find { |x| line.match(x) }
|
69
69
|
next unless interface
|
70
70
|
if interface.is_a?(String)
|
71
|
-
interface = interface.
|
71
|
+
interface = interface.tr('.', '_')
|
72
72
|
end
|
73
73
|
|
74
74
|
stats = stats_string.split(/\s+/)
|
data/bin/metrics-netif.rb
CHANGED
@@ -35,7 +35,7 @@ class NetIFMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
35
35
|
option :scheme,
|
36
36
|
description: 'Metric naming scheme, text to prepend to .$parent.$child',
|
37
37
|
long: '--scheme SCHEME',
|
38
|
-
default:
|
38
|
+
default: Socket.gethostname.to_s
|
39
39
|
|
40
40
|
def run
|
41
41
|
`sar -n DEV 1 1 | grep Average | grep -v IFACE`.each_line do |line|
|
data/bin/metrics-netstat-tcp.rb
CHANGED
@@ -58,7 +58,7 @@ TCP_STATES = {
|
|
58
58
|
'09' => 'LAST_ACK',
|
59
59
|
'0A' => 'LISTEN',
|
60
60
|
'0B' => 'CLOSING'
|
61
|
-
}
|
61
|
+
}.freeze
|
62
62
|
|
63
63
|
#
|
64
64
|
# Netstat TCP Metrics
|
@@ -101,7 +101,7 @@ class NetstatTCPMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
101
101
|
netstat('tcp').each do |state, count|
|
102
102
|
graphite_name = config[:port] ? "#{config[:scheme]}.#{config[:port]}.#{state}" :
|
103
103
|
"#{config[:scheme]}.#{state}"
|
104
|
-
output
|
104
|
+
output graphite_name.to_s, count, timestamp
|
105
105
|
end
|
106
106
|
ok
|
107
107
|
end
|
data/bin/metrics-ping.rb
CHANGED
@@ -22,6 +22,12 @@
|
|
22
22
|
# gem: sensu-plugin
|
23
23
|
# gem: open3
|
24
24
|
#
|
25
|
+
# WARNING:
|
26
|
+
# This plugins requires `ping` binary from `iputils-ping` package.
|
27
|
+
# `ping` binary from `inetutils-ping` package produces incompatible
|
28
|
+
# output. For more info see:
|
29
|
+
# https://github.com/sensu-plugins/sensu-plugins-network-checks/issues/26
|
30
|
+
#
|
25
31
|
# USAGE:
|
26
32
|
# ./metric-ping --host <host> --count <count> \
|
27
33
|
# --timeout <timeout> --scheme <scheme>
|
@@ -34,11 +40,11 @@
|
|
34
40
|
# for details.
|
35
41
|
#
|
36
42
|
|
37
|
-
require 'sensu-plugin/
|
43
|
+
require 'sensu-plugin/metric/cli'
|
38
44
|
require 'socket'
|
39
45
|
require 'open3'
|
40
46
|
|
41
|
-
class PingMetrics < Sensu::Plugin::
|
47
|
+
class PingMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
42
48
|
option :scheme,
|
43
49
|
description: 'Metric naming scheme, text to prepend to metric',
|
44
50
|
short: '-s SCHEME',
|
@@ -63,9 +69,9 @@ class PingMetrics < Sensu::Plugin::Check::CLI
|
|
63
69
|
long: '--timeout TIMEOUT',
|
64
70
|
default: 5
|
65
71
|
|
66
|
-
OVERVIEW_METRICS = [:packets_transmitted, :packets_received, :packet_loss, :time]
|
67
|
-
STATISTIC_METRICS = [:min, :
|
68
|
-
FLOAT = '(\d+\.\d+)'
|
72
|
+
OVERVIEW_METRICS = [:packets_transmitted, :packets_received, :packet_loss, :time].freeze
|
73
|
+
STATISTIC_METRICS = [:min, :avg, :max, :mdev].freeze
|
74
|
+
FLOAT = '(\d+\.\d+)'.freeze
|
69
75
|
|
70
76
|
def overview
|
71
77
|
@ping.split("\n")[-2].scan(/^(\d+) packets transmitted, (\d+) received, (\d+)% packet loss, time (\d+)ms/)[0]
|
@@ -83,8 +89,8 @@ class PingMetrics < Sensu::Plugin::Check::CLI
|
|
83
89
|
@timestamp ||= Time.now.to_i
|
84
90
|
end
|
85
91
|
|
86
|
-
def
|
87
|
-
results.each { |metric, value|
|
92
|
+
def write_output
|
93
|
+
results.each { |metric, value| output "#{config[:scheme]}.#{metric} #{value} #{timestamp}" }
|
88
94
|
end
|
89
95
|
|
90
96
|
def ping
|
@@ -92,13 +98,13 @@ class PingMetrics < Sensu::Plugin::Check::CLI
|
|
92
98
|
end
|
93
99
|
|
94
100
|
def validate
|
95
|
-
critical "ping error:
|
101
|
+
critical "ping error: unable to ping #{config[:host]}" unless @status.success?
|
96
102
|
end
|
97
103
|
|
98
104
|
def run
|
99
105
|
ping
|
100
106
|
validate
|
101
|
-
|
102
|
-
|
107
|
+
write_output
|
108
|
+
ok
|
103
109
|
end
|
104
110
|
end
|
data/bin/metrics-sockstat.rb
CHANGED
@@ -54,8 +54,8 @@ class MetricsSockstat < Sensu::Plugin::Metric::CLI::Graphite
|
|
54
54
|
|
55
55
|
def read_sockstat
|
56
56
|
return IO.read('/proc/net/sockstat')
|
57
|
-
|
58
|
-
|
57
|
+
rescue => e
|
58
|
+
unknown "Failed to read /proc/net/sockstat: #{e}"
|
59
59
|
end
|
60
60
|
|
61
61
|
def run
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-network-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
|
14
|
-
am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
|
15
|
-
A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
|
16
|
-
CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
|
17
|
-
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
|
18
|
-
CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
|
19
|
-
zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
|
20
|
-
qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
|
21
|
-
k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
|
22
|
-
oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
|
23
|
-
0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
24
|
-
HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
|
25
|
-
QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
|
26
|
-
MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
|
27
|
-
rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
|
28
|
-
UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
|
29
|
-
JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
|
30
|
-
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
|
-
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2016-01-22 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-03 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: dnsbl-client
|
@@ -50,16 +28,16 @@ dependencies:
|
|
50
28
|
name: sensu-plugin
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
52
30
|
requirements:
|
53
|
-
- -
|
31
|
+
- - ~>
|
54
32
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.2
|
33
|
+
version: '1.2'
|
56
34
|
type: :runtime
|
57
35
|
prerelease: false
|
58
36
|
version_requirements: !ruby/object:Gem::Requirement
|
59
37
|
requirements:
|
60
|
-
- -
|
38
|
+
- - ~>
|
61
39
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.2
|
40
|
+
version: '1.2'
|
63
41
|
- !ruby/object:Gem::Dependency
|
64
42
|
name: net-ping
|
65
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,166 +84,166 @@ dependencies:
|
|
106
84
|
name: bundler
|
107
85
|
requirement: !ruby/object:Gem::Requirement
|
108
86
|
requirements:
|
109
|
-
- -
|
87
|
+
- - ~>
|
110
88
|
- !ruby/object:Gem::Version
|
111
89
|
version: '1.7'
|
112
90
|
type: :development
|
113
91
|
prerelease: false
|
114
92
|
version_requirements: !ruby/object:Gem::Requirement
|
115
93
|
requirements:
|
116
|
-
- -
|
94
|
+
- - ~>
|
117
95
|
- !ruby/object:Gem::Version
|
118
96
|
version: '1.7'
|
119
97
|
- !ruby/object:Gem::Dependency
|
120
98
|
name: codeclimate-test-reporter
|
121
99
|
requirement: !ruby/object:Gem::Requirement
|
122
100
|
requirements:
|
123
|
-
- -
|
101
|
+
- - ~>
|
124
102
|
- !ruby/object:Gem::Version
|
125
103
|
version: '0.4'
|
126
104
|
type: :development
|
127
105
|
prerelease: false
|
128
106
|
version_requirements: !ruby/object:Gem::Requirement
|
129
107
|
requirements:
|
130
|
-
- -
|
108
|
+
- - ~>
|
131
109
|
- !ruby/object:Gem::Version
|
132
110
|
version: '0.4'
|
133
111
|
- !ruby/object:Gem::Dependency
|
134
112
|
name: github-markup
|
135
113
|
requirement: !ruby/object:Gem::Requirement
|
136
114
|
requirements:
|
137
|
-
- -
|
115
|
+
- - ~>
|
138
116
|
- !ruby/object:Gem::Version
|
139
117
|
version: '1.3'
|
140
118
|
type: :development
|
141
119
|
prerelease: false
|
142
120
|
version_requirements: !ruby/object:Gem::Requirement
|
143
121
|
requirements:
|
144
|
-
- -
|
122
|
+
- - ~>
|
145
123
|
- !ruby/object:Gem::Version
|
146
124
|
version: '1.3'
|
147
125
|
- !ruby/object:Gem::Dependency
|
148
126
|
name: pry
|
149
127
|
requirement: !ruby/object:Gem::Requirement
|
150
128
|
requirements:
|
151
|
-
- -
|
129
|
+
- - ~>
|
152
130
|
- !ruby/object:Gem::Version
|
153
131
|
version: '0.10'
|
154
132
|
type: :development
|
155
133
|
prerelease: false
|
156
134
|
version_requirements: !ruby/object:Gem::Requirement
|
157
135
|
requirements:
|
158
|
-
- -
|
136
|
+
- - ~>
|
159
137
|
- !ruby/object:Gem::Version
|
160
138
|
version: '0.10'
|
161
139
|
- !ruby/object:Gem::Dependency
|
162
140
|
name: rake
|
163
141
|
requirement: !ruby/object:Gem::Requirement
|
164
142
|
requirements:
|
165
|
-
- -
|
143
|
+
- - ~>
|
166
144
|
- !ruby/object:Gem::Version
|
167
145
|
version: '10.0'
|
168
146
|
type: :development
|
169
147
|
prerelease: false
|
170
148
|
version_requirements: !ruby/object:Gem::Requirement
|
171
149
|
requirements:
|
172
|
-
- -
|
150
|
+
- - ~>
|
173
151
|
- !ruby/object:Gem::Version
|
174
152
|
version: '10.0'
|
175
153
|
- !ruby/object:Gem::Dependency
|
176
154
|
name: rdoc
|
177
155
|
requirement: !ruby/object:Gem::Requirement
|
178
156
|
requirements:
|
179
|
-
- -
|
157
|
+
- - ~>
|
180
158
|
- !ruby/object:Gem::Version
|
181
159
|
version: 4.2.1
|
182
160
|
type: :development
|
183
161
|
prerelease: false
|
184
162
|
version_requirements: !ruby/object:Gem::Requirement
|
185
163
|
requirements:
|
186
|
-
- -
|
164
|
+
- - ~>
|
187
165
|
- !ruby/object:Gem::Version
|
188
166
|
version: 4.2.1
|
189
167
|
- !ruby/object:Gem::Dependency
|
190
168
|
name: redcarpet
|
191
169
|
requirement: !ruby/object:Gem::Requirement
|
192
170
|
requirements:
|
193
|
-
- -
|
171
|
+
- - ~>
|
194
172
|
- !ruby/object:Gem::Version
|
195
173
|
version: '3.2'
|
196
174
|
type: :development
|
197
175
|
prerelease: false
|
198
176
|
version_requirements: !ruby/object:Gem::Requirement
|
199
177
|
requirements:
|
200
|
-
- -
|
178
|
+
- - ~>
|
201
179
|
- !ruby/object:Gem::Version
|
202
180
|
version: '3.2'
|
203
181
|
- !ruby/object:Gem::Dependency
|
204
182
|
name: rspec
|
205
183
|
requirement: !ruby/object:Gem::Requirement
|
206
184
|
requirements:
|
207
|
-
- -
|
185
|
+
- - ~>
|
208
186
|
- !ruby/object:Gem::Version
|
209
187
|
version: '3.1'
|
210
188
|
type: :development
|
211
189
|
prerelease: false
|
212
190
|
version_requirements: !ruby/object:Gem::Requirement
|
213
191
|
requirements:
|
214
|
-
- -
|
192
|
+
- - ~>
|
215
193
|
- !ruby/object:Gem::Version
|
216
194
|
version: '3.1'
|
217
195
|
- !ruby/object:Gem::Dependency
|
218
196
|
name: rubocop
|
219
197
|
requirement: !ruby/object:Gem::Requirement
|
220
198
|
requirements:
|
221
|
-
- -
|
199
|
+
- - ~>
|
222
200
|
- !ruby/object:Gem::Version
|
223
|
-
version: 0.
|
201
|
+
version: '0.37'
|
224
202
|
type: :development
|
225
203
|
prerelease: false
|
226
204
|
version_requirements: !ruby/object:Gem::Requirement
|
227
205
|
requirements:
|
228
|
-
- -
|
206
|
+
- - ~>
|
229
207
|
- !ruby/object:Gem::Version
|
230
|
-
version: 0.
|
208
|
+
version: '0.37'
|
231
209
|
- !ruby/object:Gem::Dependency
|
232
210
|
name: yard
|
233
211
|
requirement: !ruby/object:Gem::Requirement
|
234
212
|
requirements:
|
235
|
-
- -
|
213
|
+
- - ~>
|
236
214
|
- !ruby/object:Gem::Version
|
237
215
|
version: '0.8'
|
238
216
|
type: :development
|
239
217
|
prerelease: false
|
240
218
|
version_requirements: !ruby/object:Gem::Requirement
|
241
219
|
requirements:
|
242
|
-
- -
|
220
|
+
- - ~>
|
243
221
|
- !ruby/object:Gem::Version
|
244
222
|
version: '0.8'
|
245
|
-
description:
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
email: "<sensu-users@googlegroups.com>"
|
223
|
+
description: ! "This plugin provides native network instrumentation\n for
|
224
|
+
monitoring and metrics collection, including:\n hardware,
|
225
|
+
TCP response, RBLs, whois, port status, and more"
|
226
|
+
email: <sensu-users@googlegroups.com>
|
250
227
|
executables:
|
251
|
-
- metrics-sockstat.rb
|
252
|
-
- metrics-ping.rb
|
253
|
-
- metrics-netstat-tcp.rb
|
254
|
-
- metrics-netif.rb
|
255
|
-
- metrics-net.rb
|
256
|
-
- metrics-interface.rb
|
257
|
-
- check-whois-domain-expiration.rb
|
258
|
-
- check-whois-domain-expiration-multi.rb
|
259
|
-
- check-socat.rb
|
260
|
-
- check-rbl.rb
|
261
|
-
- check-ports.rb
|
262
|
-
- check-ports-nmap.rb
|
263
|
-
- check-ping.rb
|
264
|
-
- check-netstat-tcp.rb
|
265
|
-
- check-multicast-groups.rb
|
266
|
-
- check-mtu.rb
|
267
|
-
- check-jsonwhois-domain-expiration.rb
|
268
228
|
- check-banner.rb
|
229
|
+
- check-jsonwhois-domain-expiration.rb
|
230
|
+
- check-mtu.rb
|
231
|
+
- check-multicast-groups.rb
|
232
|
+
- check-netfilter-conntrack.rb
|
233
|
+
- check-netstat-tcp.rb
|
234
|
+
- check-ping.rb
|
235
|
+
- check-ports-nmap.rb
|
236
|
+
- check-ports.rb
|
237
|
+
- check-rbl.rb
|
238
|
+
- check-socat.rb
|
239
|
+
- check-whois-domain-expiration-multi.rb
|
240
|
+
- check-whois-domain-expiration.rb
|
241
|
+
- metrics-interface.rb
|
242
|
+
- metrics-net.rb
|
243
|
+
- metrics-netif.rb
|
244
|
+
- metrics-netstat-tcp.rb
|
245
|
+
- metrics-ping.rb
|
246
|
+
- metrics-sockstat.rb
|
269
247
|
extensions: []
|
270
248
|
extra_rdoc_files: []
|
271
249
|
files:
|
@@ -276,6 +254,8 @@ files:
|
|
276
254
|
- bin/check-jsonwhois-domain-expiration.rb
|
277
255
|
- bin/check-mtu.rb
|
278
256
|
- bin/check-multicast-groups.rb
|
257
|
+
- bin/check-netfilter-conntrack.rb
|
258
|
+
- bin/check-netfilter-conntrack.sh
|
279
259
|
- bin/check-netstat-tcp.rb
|
280
260
|
- bin/check-ping.rb
|
281
261
|
- bin/check-ports-nmap.rb
|
@@ -296,7 +276,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-network-checks
|
|
296
276
|
licenses:
|
297
277
|
- MIT
|
298
278
|
metadata:
|
299
|
-
maintainer:
|
279
|
+
maintainer: ! '@rmc3'
|
300
280
|
development_status: active
|
301
281
|
production_status: unstable - testing recommended
|
302
282
|
release_draft: 'false'
|
@@ -308,17 +288,17 @@ require_paths:
|
|
308
288
|
- lib
|
309
289
|
required_ruby_version: !ruby/object:Gem::Requirement
|
310
290
|
requirements:
|
311
|
-
- -
|
291
|
+
- - ! '>='
|
312
292
|
- !ruby/object:Gem::Version
|
313
293
|
version: 1.9.3
|
314
294
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
315
295
|
requirements:
|
316
|
-
- -
|
296
|
+
- - ! '>='
|
317
297
|
- !ruby/object:Gem::Version
|
318
298
|
version: '0'
|
319
299
|
requirements: []
|
320
300
|
rubyforge_project:
|
321
|
-
rubygems_version: 2.4.
|
301
|
+
rubygems_version: 2.4.5
|
322
302
|
signing_key:
|
323
303
|
specification_version: 4
|
324
304
|
summary: Sensu plugins for checking network hardware, connections, and data
|
checksums.yaml.gz.sig
DELETED
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|