sensu-plugins-ftp 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 +4 -4
- data/CHANGELOG.md +7 -1
- data/bin/check-ftp.rb +7 -0
- data/lib/sensu-plugins-ftp/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5de3a9966da07c1f8fb16651563a0486e2a92803
|
4
|
+
data.tar.gz: d6344a92aeb4eb446bcab1c84490192bd5e25ab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24fc5e7b079f7503ba0e268674f7a3fa6e00dbcf6d14d6b204eb920d169d3a0a5614dc8ce486d34dce7e1bbf198e7b150ee80f2f82a27ea212f3f792e4617fef
|
7
|
+
data.tar.gz: f0f97a7233deeb4acc78e1c047874f64f63dc829f144da46c008947683c634faf12d534f1a7b9b1b2d678c41f1aa035b1fdadade3bf50104c56702fe904bfec5
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.1.0] - 2017-05-30
|
9
|
+
### Added
|
10
|
+
- check-ftp.rb: add support for implicit FTPS. (@swibowo)
|
11
|
+
- Add `double-bag-ftps` dependency (@swibowo)
|
12
|
+
|
8
13
|
## [1.0.0] - 2017-05-14
|
9
14
|
### Added
|
10
15
|
- Add support for writing test files (@sstarcher)
|
@@ -25,6 +30,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
25
30
|
### Added
|
26
31
|
- initial release
|
27
32
|
|
28
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/1.
|
33
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/1.1.0...HEAD
|
34
|
+
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/1.0.0...1.1.0
|
29
35
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/0.0.2...1.0.0
|
30
36
|
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/0.0.1...0.0.2
|
data/bin/check-ftp.rb
CHANGED
@@ -63,6 +63,10 @@ class CheckFTP < Sensu::Plugin::Check::CLI
|
|
63
63
|
short: '-t SECS',
|
64
64
|
proc: proc(&:to_i),
|
65
65
|
default: 15
|
66
|
+
option :implicit_ftps,
|
67
|
+
short: '-i',
|
68
|
+
boolean: true,
|
69
|
+
default: false
|
66
70
|
|
67
71
|
def write_file
|
68
72
|
file = Tempfile.new("sensu_#{Time.now.to_i}.txt")
|
@@ -114,6 +118,9 @@ class CheckFTP < Sensu::Plugin::Check::CLI
|
|
114
118
|
ftps.ssl_context = DoubleBagFTPS.create_ssl_context(
|
115
119
|
verify_mode: verify
|
116
120
|
)
|
121
|
+
if config[:implicit_ftps]
|
122
|
+
ftps.ftps_mode = DoubleBagFTPS::IMPLICIT
|
123
|
+
end
|
117
124
|
ftps.connect(config[:host])
|
118
125
|
ftps
|
119
126
|
rescue => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
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-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: double-bag-ftps
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.3
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.3
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|