sensu-plugins-puppet 2.1.1 → 2.2.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 +6 -1
- data/bin/check-puppet-errors.rb +3 -2
- data/bin/check-puppet-last-run.rb +3 -2
- data/bin/metrics-puppet-run.rb +2 -1
- data/lib/sensu-plugins-puppet.rb +5 -0
- data/lib/sensu-plugins-puppet/version.rb +2 -2
- metadata +10 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8664397515f45f7cd4a42b1a56db2e725bb1698701a48e1b1369d3a3110cace
|
|
4
|
+
data.tar.gz: b9fc5ebb7e72f91f2543d9acb38ea31e87b1a0860d80effaf19870f174fd31ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a9e20d96c3769b0ce328174da603b006f2a28e26eaabec73b35d94e913dfd5f29fc9e083fddcbf39297c9ea115e02cbe42c77a2b3a6a7257f2a07d0ba3e7c25
|
|
7
|
+
data.tar.gz: 36ee3f3256cdfdddd1427ad42b4cdaf8c07f0ed827d1d35c3a26322b0c4fbded9f5e65491579061c8eaa88474dc485e26dbaf545d44fcad741c7eb122460e175
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [2.2.0] - 2019-12-17
|
|
9
|
+
### Added
|
|
10
|
+
- Adding support windows by default without overriding options by checking the platform and adjusting the paths automatically (@bodgit)
|
|
11
|
+
|
|
8
12
|
## [2.1.1] - 2018-05-03
|
|
9
13
|
### Fixed
|
|
10
14
|
- check-puppet-last-run.rb: fixed issue where `failures` and `restart_failures` were `nil` when `--ignore-failures` was passed by ensuring that they were defined as `0` so that they could be compared. (@bovy89)
|
|
@@ -60,7 +64,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
|
60
64
|
### Added
|
|
61
65
|
- initial release
|
|
62
66
|
|
|
63
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.
|
|
67
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.2.0...HEAD
|
|
68
|
+
[2.2.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.1.1...2.2.0
|
|
64
69
|
[2.1.1]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.1.0...2.1.1
|
|
65
70
|
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.0.0...2.1.0
|
|
66
71
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/1.3.0...2.0.0
|
data/bin/check-puppet-errors.rb
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
# for details.
|
|
28
28
|
#
|
|
29
29
|
|
|
30
|
+
require 'sensu-plugins-puppet'
|
|
30
31
|
require 'sensu-plugin/check/cli'
|
|
31
32
|
require 'yaml'
|
|
32
33
|
require 'json'
|
|
@@ -36,13 +37,13 @@ class PuppetErrors < Sensu::Plugin::Check::CLI
|
|
|
36
37
|
option :summary_file,
|
|
37
38
|
short: '-s PATH',
|
|
38
39
|
long: '--summary-file PATH',
|
|
39
|
-
default:
|
|
40
|
+
default: SensuPluginsPuppet::SUMMARY_FILE,
|
|
40
41
|
description: 'Location of last_run_summary.yaml file'
|
|
41
42
|
|
|
42
43
|
option :agent_disabled_file,
|
|
43
44
|
short: '-a PATH',
|
|
44
45
|
long: '--agent-disabled-file PATH',
|
|
45
|
-
default:
|
|
46
|
+
default: SensuPluginsPuppet::AGENT_DISABLED_FILE,
|
|
46
47
|
description: 'Path to agent disabled lock file'
|
|
47
48
|
|
|
48
49
|
def run
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
# for details.
|
|
28
28
|
#
|
|
29
29
|
|
|
30
|
+
require 'sensu-plugins-puppet'
|
|
30
31
|
require 'sensu-plugin/check/cli'
|
|
31
32
|
require 'yaml'
|
|
32
33
|
require 'json'
|
|
@@ -36,7 +37,7 @@ class PuppetLastRun < Sensu::Plugin::Check::CLI
|
|
|
36
37
|
option :summary_file,
|
|
37
38
|
short: '-s PATH',
|
|
38
39
|
long: '--summary-file PATH',
|
|
39
|
-
default:
|
|
40
|
+
default: SensuPluginsPuppet::SUMMARY_FILE,
|
|
40
41
|
description: 'Location of last_run_summary.yaml file'
|
|
41
42
|
|
|
42
43
|
option :warn_age,
|
|
@@ -56,7 +57,7 @@ class PuppetLastRun < Sensu::Plugin::Check::CLI
|
|
|
56
57
|
option :agent_disabled_file,
|
|
57
58
|
short: '-a PATH',
|
|
58
59
|
long: '--agent-disabled-file PATH',
|
|
59
|
-
default:
|
|
60
|
+
default: SensuPluginsPuppet::AGENT_DISABLED_FILE,
|
|
60
61
|
description: 'Path to agent disabled lock file'
|
|
61
62
|
|
|
62
63
|
option :disabled_age_limits,
|
data/bin/metrics-puppet-run.rb
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
# for details.
|
|
25
25
|
#
|
|
26
26
|
|
|
27
|
+
require 'sensu-plugins-puppet'
|
|
27
28
|
require 'sensu-plugin/metric/cli'
|
|
28
29
|
require 'yaml'
|
|
29
30
|
require 'socket'
|
|
@@ -32,7 +33,7 @@ class PuppetRun < Sensu::Plugin::Metric::CLI::Graphite
|
|
|
32
33
|
option :summary_file,
|
|
33
34
|
short: '-p PATH',
|
|
34
35
|
long: '--summary-file PATH',
|
|
35
|
-
default:
|
|
36
|
+
default: SensuPluginsPuppet::SUMMARY_FILE,
|
|
36
37
|
description: 'Location of last_run_summary.yaml file'
|
|
37
38
|
|
|
38
39
|
option :scheme,
|
data/lib/sensu-plugins-puppet.rb
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
1
|
require 'sensu-plugins-puppet/version'
|
|
2
|
+
|
|
3
|
+
module SensuPluginsPuppet
|
|
4
|
+
SUMMARY_FILE = "#{Gem.win_platform? ? 'C:/ProgramData/PuppetLabs' : '/opt/puppetlabs'}/puppet/cache/state/last_run_summary.yaml".freeze
|
|
5
|
+
AGENT_DISABLED_FILE = "#{Gem.win_platform? ? 'C:/ProgramData/PuppetLabs' : '/opt/puppetlabs'}/puppet/cache/state/agent_disabled.lock".freeze
|
|
6
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.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:
|
|
11
|
+
date: 2019-12-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|
|
@@ -44,28 +44,28 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0
|
|
47
|
+
version: '1.0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0
|
|
54
|
+
version: '1.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: github-markup
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '3.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '3.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: pry
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
89
|
+
version: '12.3'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
96
|
+
version: '12.3'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: redcarpet
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -156,9 +156,9 @@ description: |-
|
|
|
156
156
|
Puppet run.
|
|
157
157
|
email: "<sensu-users@googlegroups.com>"
|
|
158
158
|
executables:
|
|
159
|
-
- check-puppet-errors.rb
|
|
160
159
|
- check-puppet-last-run.rb
|
|
161
160
|
- metrics-puppet-run.rb
|
|
161
|
+
- check-puppet-errors.rb
|
|
162
162
|
extensions: []
|
|
163
163
|
extra_rdoc_files: []
|
|
164
164
|
files:
|
|
@@ -195,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
195
195
|
- !ruby/object:Gem::Version
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
|
-
|
|
199
|
-
rubygems_version: 2.7.6
|
|
198
|
+
rubygems_version: 3.0.3
|
|
200
199
|
signing_key:
|
|
201
200
|
specification_version: 4
|
|
202
201
|
summary: Sensu plugins for puppet
|