sensu-plugins-mongodb 1.2.0 → 1.2.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 +5 -1
- data/bin/check-mongodb.py +8 -2
- data/lib/sensu-plugins-mongodb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b8bad3ad77f99f2e12beec51387e77d4a6e0dbd
|
4
|
+
data.tar.gz: c913acc5d643e0c75a504d607cef1c3540a3e942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b1ae24ee41dc1215e1cf156f2027ee7a91b81e1564f3e75c0f3c1d5d235276afa135344d55838d827787a41befcde5ae34b2d4642e5dee7f54ac2a69db8211f
|
7
|
+
data.tar.gz: 3b17c793a350956c2f152465ead044152305b0df706975a88cf570007e19eb3014afd27d28ae39c99892b6842e0db3ec58b4ae0cd6a988cc69a2831c6772a1b8
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
## [1.2.1] - 2017-05-07
|
8
|
+
### Fixed
|
9
|
+
- `check-mongodb.py`: fixed issue of param building with not/using ssl connections (@s-schweer)
|
7
10
|
|
8
11
|
## [1.2.0] - 2017-03-06
|
9
12
|
### Fixed
|
@@ -89,7 +92,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
89
92
|
### Added
|
90
93
|
- initial release
|
91
94
|
|
92
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.2.
|
95
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.2.1...HEAD
|
96
|
+
[1.2.1]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.2.0...1.2.1
|
93
97
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.1.0...1.2.0
|
94
98
|
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.0.0...1.1.0
|
95
99
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/0.0.8...1.0.0
|
data/bin/check-mongodb.py
CHANGED
@@ -278,9 +278,15 @@ def mongo_connect(host=None, port=None, ssl_enabled=False, ssl_certfile=None, ss
|
|
278
278
|
# ssl connection for pymongo > 2.3
|
279
279
|
if pymongo.version >= "2.3":
|
280
280
|
if replica is None:
|
281
|
-
|
281
|
+
if ssl_enabled:
|
282
|
+
con = pymongo.MongoClient(host, port, ssl=ssl_enabled, ssl_certfile=ssl_certfile, ssl_keyfile=ssl_keyfile, ssl_ca_certs=ssl_ca_certs)
|
283
|
+
else:
|
284
|
+
con = pymongo.MongoClient(host, port)
|
282
285
|
else:
|
283
|
-
|
286
|
+
if ssl_enabled:
|
287
|
+
con = pymongo.Connection(host, port, read_preference=pymongo.ReadPreference.SECONDARY, ssl=ssl_enabled, ssl_certfile=ssl_certfile, ssl_keyfile=ssl_keyfile, ssl_ca_certs=ssl_ca_certs, replicaSet=replica, network_timeout=10)
|
288
|
+
else:
|
289
|
+
con = pymongo.Connection(host, port, read_preference=pymongo.ReadPreference.SECONDARY, replicaSet=replica, network_timeout=10)
|
284
290
|
else:
|
285
291
|
if replica is None:
|
286
292
|
con = pymongo.Connection(host, port, slave_okay=True, network_timeout=10)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.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-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bson
|