sensu-plugins-puppet 1.0.0 → 1.1.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 +9 -1
- data/README.md +1 -1
- data/bin/check-puppet-last-run.rb +10 -2
- data/lib/sensu-plugins-puppet/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a9626453a59705edc4715523c12c366b2fcd7a9
|
4
|
+
data.tar.gz: c882bfd19f801e501224844daf67504966a08dc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2b7f1bd8ad0e332836f4364a6b0f9b4fd1a6016b7ccc821db4e85d8b368fdd5d14aae5b67b3cd9cac4d240c46f0ce0c74717805d488b566093353e4d3f4be4
|
7
|
+
data.tar.gz: 754eaa453b7811cf59347bf0f452c1adae0b9091c5e3501eaa811e63d9b906f4531664c6b3459b37eef4aabd81bce6921b7f9686a1e89d37748f88489b097379
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.1.0] - 2017-01-30
|
9
|
+
### Added
|
10
|
+
- `check-puppet-last-run.rb`: Added critical alerting on failures during summary file processing (@grem11n)
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- `check-puppet-last-run.rb`: Corrected failure count hash key (@eahola)
|
14
|
+
|
8
15
|
## [1.0.0] - 2016-06-21
|
9
16
|
### Changed
|
10
17
|
- check-puppet-last-run.rb: Added a formatter method to display time in a more human friendly format. (d m s) ago
|
@@ -24,6 +31,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
24
31
|
### Added
|
25
32
|
- initial release
|
26
33
|
|
27
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/1.
|
34
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/1.1.0...HEAD
|
35
|
+
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/1.0.0...1.1.0
|
28
36
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/0.0.2...1.0.0
|
29
37
|
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Sensu-Plugins-puppet
|
2
2
|
|
3
|
-
[
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-puppet.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-puppet)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-puppet.svg)](http://badge.fury.io/rb/sensu-plugins-puppet)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet)
|
@@ -68,8 +68,16 @@ class PuppetLastRun < Sensu::Plugin::Check::CLI
|
|
68
68
|
|
69
69
|
begin
|
70
70
|
summary = YAML.load_file(config[:summary_file])
|
71
|
-
|
72
|
-
|
71
|
+
if summary['time']
|
72
|
+
@last_run = summary['time']['last_run'].to_i
|
73
|
+
else
|
74
|
+
critical "#{config[:summary_file]} is missing information about the last run timestamp"
|
75
|
+
end
|
76
|
+
if summary['events']
|
77
|
+
@failures = summary['events']['failure'].to_i
|
78
|
+
else
|
79
|
+
critical "#{config[:summary_file]} is missing information about the events"
|
80
|
+
end
|
73
81
|
rescue
|
74
82
|
unknown "Could not process #{config[:summary_file]}"
|
75
83
|
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: 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:
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -194,9 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.5
|
197
|
+
rubygems_version: 2.4.5
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Sensu plugins for puppet
|
201
201
|
test_files: []
|
202
|
-
has_rdoc:
|