sensu-plugins-sftp 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -3
- data/README.md +2 -3
- data/bin/check-sftp.rb +3 -8
- data/lib/sensu-plugins-sftp/version.rb +2 -2
- metadata +17 -36
- checksums.yaml.gz.sig +0 -1
- data.tar.gz.sig +0 -1
- 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: 2b78f86b2437d63fcb92d21660f0e463e078a100
|
4
|
+
data.tar.gz: 7ee29dc15d8fde6ea29a7b9f504e109b1c92662f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b23d24493d8ada26d7e8b8ac75c37d9de6ed6a2e46874a49cb4fe9beeea7319adab5876e09ac3b00a123eaa50ff672f9761f30e972bc8c200592bc2d1e22f7f
|
7
|
+
data.tar.gz: 1e366df4dd225ea495f786cba56881672369ad663c60fd197cedf3e9e545b7b66e6d2f09d9518a22b76c3a16f3108845f3cb5786d320f058d5b6cf35559f461f
|
data/CHANGELOG.md
CHANGED
@@ -3,14 +3,29 @@ 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
|
+
## [1.0.0] - 2016-09-25
|
9
|
+
### Removed
|
10
|
+
- Ruby 1.9.3 support
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- Ruby 2.3.0 support
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
- uninitialized constant CheckSftp::Timeout error (@nickptrvc)
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
- Update to rubocop 0.40 and cleanup
|
7
20
|
|
8
21
|
## [0.0.2] - 2015-07-14
|
9
22
|
### Changed
|
10
23
|
- updated sensu-plugin gem to 1.2.0
|
11
24
|
|
12
|
-
##
|
13
|
-
|
25
|
+
## 0.0.1 - 2015-07-04
|
14
26
|
### Added
|
15
27
|
- initial release
|
16
28
|
|
29
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sftp/compare/1.0.0...HEAD
|
30
|
+
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-sftp/compare/0.0.2...1.0.0
|
31
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-sftp/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
## Sensu-Plugins-sftp
|
2
2
|
|
3
|
-
[
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-sftp.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-sftp)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-sftp.svg)](http://badge.fury.io/rb/sensu-plugins-sftp)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sftp/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sftp)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sftp/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sftp)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-sftp.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-sftp)
|
8
|
-
[ ![Codeship Status for sensu-plugins/sensu-plugins-sftp](https://codeship.com/projects/169f4700-e8a5-0132-af9a-62885e5c211b/status?branch=master)](https://codeship.com/projects/82853)
|
9
8
|
|
10
9
|
## Functionality
|
11
10
|
|
@@ -16,6 +15,6 @@
|
|
16
15
|
|
17
16
|
## Installation
|
18
17
|
|
19
|
-
[Installation and Setup](
|
18
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
20
19
|
|
21
20
|
## Notes
|
data/bin/check-sftp.rb
CHANGED
@@ -104,8 +104,6 @@ class CheckSftp < Sensu::Plugin::Check::CLI
|
|
104
104
|
end
|
105
105
|
|
106
106
|
ok
|
107
|
-
rescue Timeout::Error
|
108
|
-
critical "Timed out after #{config[:timeout]}s"
|
109
107
|
rescue SocketError => e
|
110
108
|
critical "Could not connect: #{e.inspect}"
|
111
109
|
rescue Net::SSH::AuthenticationFailed
|
@@ -119,8 +117,7 @@ class CheckSftp < Sensu::Plugin::Check::CLI
|
|
119
117
|
private
|
120
118
|
|
121
119
|
def check_file_write
|
122
|
-
|
123
|
-
if config[:check_prefix] # rubocop:disable GuardClause
|
120
|
+
if config[:check_prefix]
|
124
121
|
io = StringIO.new('Generated from Sensu at ' + Time.now.to_s)
|
125
122
|
remote_path = File.join('', config[:directory], config[:check_prefix] + "_#{Time.now.to_i}.txt")
|
126
123
|
sftp.upload!(io, remote_path)
|
@@ -129,15 +126,13 @@ class CheckSftp < Sensu::Plugin::Check::CLI
|
|
129
126
|
end
|
130
127
|
|
131
128
|
def check_file_count
|
132
|
-
|
133
|
-
if config[:check_count] # rubocop:disable GuardClause
|
129
|
+
if config[:check_count]
|
134
130
|
critical "Too many files - #{config[:directory]} has #{matching_files.count} matching files" if matching_files.count > config[:check_count]
|
135
131
|
end
|
136
132
|
end
|
137
133
|
|
138
134
|
def check_file_age
|
139
|
-
|
140
|
-
if config[:check_older] # rubocop:disable GuardClause
|
135
|
+
if config[:check_older]
|
141
136
|
run_at = Time.now
|
142
137
|
old_files = matching_files.select { |f| (run_at.to_i - f.attributes.mtime) > config[:check_older] }
|
143
138
|
unless old_files.empty?
|
metadata
CHANGED
@@ -1,51 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-sftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
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: 2015-07-14 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-26 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: sensu-plugin
|
37
15
|
requirement: !ruby/object:Gem::Requirement
|
38
16
|
requirements:
|
39
|
-
- -
|
17
|
+
- - "~>"
|
40
18
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.2
|
19
|
+
version: '1.2'
|
42
20
|
type: :runtime
|
43
21
|
prerelease: false
|
44
22
|
version_requirements: !ruby/object:Gem::Requirement
|
45
23
|
requirements:
|
46
|
-
- -
|
24
|
+
- - "~>"
|
47
25
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.2
|
26
|
+
version: '1.2'
|
49
27
|
- !ruby/object:Gem::Dependency
|
50
28
|
name: net-sftp
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,16 +98,16 @@ dependencies:
|
|
120
98
|
name: rubocop
|
121
99
|
requirement: !ruby/object:Gem::Requirement
|
122
100
|
requirements:
|
123
|
-
- -
|
101
|
+
- - "~>"
|
124
102
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
103
|
+
version: 0.40.0
|
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
|
-
version:
|
110
|
+
version: 0.40.0
|
133
111
|
- !ruby/object:Gem::Dependency
|
134
112
|
name: rspec
|
135
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,7 +164,10 @@ dependencies:
|
|
186
164
|
- - "~>"
|
187
165
|
- !ruby/object:Gem::Version
|
188
166
|
version: '0.8'
|
189
|
-
description:
|
167
|
+
description: |-
|
168
|
+
This plugin provides native SFTP instrumentation
|
169
|
+
for monitoring, including: service connectivity,
|
170
|
+
file write access, and more
|
190
171
|
email: "<sensu-users@googlegroups.com>"
|
191
172
|
executables:
|
192
173
|
- check-sftp.rb
|
@@ -217,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
217
198
|
requirements:
|
218
199
|
- - ">="
|
219
200
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
201
|
+
version: 2.0.0
|
221
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
203
|
requirements:
|
223
204
|
- - ">="
|
@@ -225,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
206
|
version: '0'
|
226
207
|
requirements: []
|
227
208
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
209
|
+
rubygems_version: 2.5.1
|
229
210
|
signing_key:
|
230
211
|
specification_version: 4
|
231
212
|
summary: Sensu plugins for sftp
|
checksums.yaml.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#��tx�g�{������&r0y��I�lk��;��6����~�K��B�!u����b�Ԥ�؉B����u<Cp?�+nL��.��T+'�Bc�i�J���Wm����P��#$k��G�dg{5u���e�yʹ7iπ�����=�cG�+�j�S�JY�",��D���`}6o��\/>��q�ޅ)c�.
|
data.tar.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
�V:�'���|T5IF��mS����N���qh(b�������&$PsJp1��F(A�T���pxzN�{/�3�5���!~�jp����W�c$��CE�$^�T q'>
|
metadata.gz.sig
DELETED
Binary file
|