sensu-plugins-mongodb-wt 2.2.4 → 2.2.5

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
  SHA256:
3
- metadata.gz: 390c04245fc2ea6e6493d7180cb854ec62f275be24c81fc5ad073b89ac7e072c
4
- data.tar.gz: a58b15a0e0909ae5004020a7c322e812b52063cdfa8a05ade90f0593ce0050fc
3
+ metadata.gz: 9d1bb1b030434de772a8e2bd69c7c86cf437dd32d5df0abfd5cf45f33503cd09
4
+ data.tar.gz: 41394d839ce14ba86036857748f10f90f565e7d2a70ed00314f13ec1388fbd11
5
5
  SHA512:
6
- metadata.gz: 22a2b3d8022617761beba36941aa5e921c272194996404b0b5565eb3670483561475e4a76bec5404bf81596b8fc2846e34c5b719ea30e8a2e17e8db1ffa388ec
7
- data.tar.gz: 4610200de03d5b98da296fb1b79785d885fe8843d4baf693bf1adbe9d159edbf35d85b6e8e7bbc174fa372721f94ee26245110b2228f2f2d8d3f7906acbd1911
6
+ metadata.gz: 6e2a30569b4f7f4937bd8c36dcb9d8a0aaebd3797e3d6e66fb53269a8ee172ff973a309d3ac1c5bc910a135997a6862f452c7201ffa940e4155a9357f1a937dd
7
+ data.tar.gz: 0c9fe9f0b4b16af3212ad272107d488fef6666fe740c601a6de92d202d3b944ce6a9f4b45e3b9ada5df06d622bcd2a7d7fb3c82f253c4ff83688c266a9f3c5e1
data/README.md CHANGED
@@ -28,3 +28,16 @@ The `pymongo` python package needs to be installed to use `check-mongodb`
28
28
  ## Security
29
29
 
30
30
  * [Snyk](https://app.snyk.io/org/about-source/project/8636640d-7e1f-48d8-97fa-385eef63f783)
31
+
32
+ ## Licensing
33
+
34
+ ### nagios-plugin-mongodb
35
+
36
+ Copyright (c) 2012, Mike Zupan <mike@zcentric.com>
37
+ All rights reserved.
38
+
39
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
40
+
41
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
42
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
43
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -318,10 +318,6 @@ module SensuPluginsMongoDB
318
318
  server_metrics['metrics.repl.network.getmores_totalMillis'] = repl['network']['getmores']['totalMillis']
319
319
  server_metrics['metrics.repl.network.ops'] = repl['network']['ops']
320
320
  server_metrics['metrics.repl.network.readersCreated'] = repl['network']['readersCreated']
321
- server_metrics['metrics.repl.preload.docs_num'] = repl['preload']['docs']['num']
322
- server_metrics['metrics.repl.preload.docs_totalMillis'] = repl['preload']['docs']['totalMillis']
323
- server_metrics['metrics.repl.preload.indexes_num'] = repl['preload']['indexes']['num']
324
- server_metrics['metrics.repl.preload.indexes_totalMillis'] = repl['preload']['indexes']['totalMillis']
325
321
 
326
322
  # Metrics (replicaset status)
327
323
  # MongoDB will fail if not running with --replSet, hence the check for nil
@@ -329,14 +325,6 @@ module SensuPluginsMongoDB
329
325
  server_metrics['metrics.replicaset.state'] = replicaset_status['myState']
330
326
  end
331
327
 
332
- # Metrics (storage)
333
- if Gem::Version.new(mongo_version) >= Gem::Version.new('2.6.0')
334
- freelist = server_status['metrics']['storage']['freelist']
335
- server_metrics['metrics.storage.freelist.search_bucketExhauseted'] = freelist['search']['bucketExhausted']
336
- server_metrics['metrics.storage.freelist.search_requests'] = freelist['search']['requests']
337
- server_metrics['metrics.storage.freelist.search_scanned'] = freelist['search']['scanned']
338
- end
339
-
340
328
  # Metrics (ttl)
341
329
  ttl = server_status['metrics']['ttl']
342
330
  server_metrics['metrics.ttl.deletedDocuments'] = ttl['deletedDocuments']
@@ -2,7 +2,7 @@ module SensuPluginsMongoDB
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 2
5
- PATCH = 4
5
+ PATCH = 5
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-wt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
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: 2022-02-08 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson