sensu-plugins-postgres 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -2
- data/README.md +8 -0
- data/bin/metrics-postgres-query.rb +1 -1
- data/lib/sensu-plugins-postgres/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993dcdf3196f64eb952b83e149dcf97aa8c1c3b4
|
4
|
+
data.tar.gz: e4429c8ddeeaf0e2aadd7dc23eb6feb4b1facf2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfcaabcfab68526a0328e55e97724951303dfa65badc6af5bd15716a1b16c22c682e6d2214d17e1765a90a583ff18d23c3f5ded627ae508ff1c6cd79795a5c69
|
7
|
+
data.tar.gz: 2ceaba039d8ba6b1bcf4de1050811a512b75e3e6d93096fa52ad7138d54f28da76d0e94839c411d5359a89f600f06006ba530f0c3c7b19f0eabb6f3999a58d8c
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
3
|
|
4
|
-
This CHANGELOG follows the format listed
|
4
|
+
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md).
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.4.1] - 2017-09-26
|
9
|
+
### Fixed
|
10
|
+
- metrics-postgres-query.rb: Add a nil check to avoid failure when the query result is empty (@eheydrick)
|
11
|
+
- PR template spelling (@majormoses)
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
- updated CHANGELOG guidelines location (@majormoses)
|
15
|
+
|
8
16
|
## [1.4.0] - 2017-08-04
|
9
17
|
### Added
|
10
18
|
- all checks now support using the pgpass file and is backwards compatible with the previous versions (@ahes)
|
@@ -110,7 +118,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
110
118
|
### Added
|
111
119
|
- initial release
|
112
120
|
|
113
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.
|
121
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.1...HEAD
|
122
|
+
[1.4.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.0...1.4.1
|
114
123
|
[1.4.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.3.0...1.4.0
|
115
124
|
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.2.0...1.3.0
|
116
125
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.2...1.2.0
|
data/README.md
CHANGED
@@ -85,6 +85,14 @@ You can ovveride `pgpass` values with command line arguments, e.g. `-h` for host
|
|
85
85
|
gem install sensu-plugins-postgres
|
86
86
|
```
|
87
87
|
|
88
|
+
## Centos installation
|
89
|
+
|
90
|
+
```
|
91
|
+
yum -y install gcc ruby-devel rubygems postgresql-devel
|
92
|
+
sensu-install -p sensu-plugins-postgres
|
93
|
+
|
94
|
+
```
|
95
|
+
|
88
96
|
See [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html) for details.
|
89
97
|
|
90
98
|
### Known issues
|
@@ -114,7 +114,7 @@ class MetricsPostgresQuery < Sensu::Plugin::Metric::CLI::Graphite
|
|
114
114
|
value = if config[:count_tuples]
|
115
115
|
res.ntuples
|
116
116
|
else
|
117
|
-
res.first.values.first
|
117
|
+
res.first.values.first unless res.first.nil?
|
118
118
|
end
|
119
119
|
|
120
120
|
if config[:multirow] && !config[:count_tuples]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
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-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.
|
251
|
+
rubygems_version: 2.6.13
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Sensu plugins for postgres
|