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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfca8c42b794ef56479c399a096978b10d28c9fd
4
- data.tar.gz: 1f53b3e58ad977a97dc38a99146e475494d0d30c
3
+ metadata.gz: 1b8bad3ad77f99f2e12beec51387e77d4a6e0dbd
4
+ data.tar.gz: c913acc5d643e0c75a504d607cef1c3540a3e942
5
5
  SHA512:
6
- metadata.gz: 257b8f1ba57cdd72d14fdcbaac5c371cf5e4161a5d71a10c21c0ad4510f0ada59c854e30b0f0c5d991419e59f506bf0b6069367f53c09ae4f8d59f5d7cdf6f62
7
- data.tar.gz: 4c29b0c300008462a2f086b1eb40574abac0beca10ae2e334772a901107811a4397b76cfaf76285464c45c174b808d1c4d3f66b08ef862ec5d8d868f517f6845
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.0...HEAD
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
- con = pymongo.MongoClient(host, port, ssl=ssl_enabled, ssl_certfile=ssl_certfile, ssl_keyfile=ssl_keyfile, ssl_ca_certs=ssl_ca_certs)
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
- 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)
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)
@@ -2,7 +2,7 @@ module SensuPluginsMongoDB
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.0
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-03-06 00:00:00.000000000 Z
11
+ date: 2017-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson