sensu-plugins-rabbitmq 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40b573a0f4773062128ed437a39576e788bacaa4
4
- data.tar.gz: 9dff2b208732607d97c71336fefd97b6cc62c26f
3
+ metadata.gz: 0dd465aac9095a55b092e291e9db39204a4788c5
4
+ data.tar.gz: cd8aca106692da139aa6558ab507998c750281b8
5
5
  SHA512:
6
- metadata.gz: 936041662c088f8550408d06a77122052cebd9b3d01063dc9d5884670e79568892f4fa68313db16ca1be40906618df0f55e5dda1d54d2886e7af7e731100ad0f
7
- data.tar.gz: f27b523247e059743620704494925be4c0d820e46b2ae2504a57b30de2ba321f1391785ec0f4178465633cf0c6b67f0521cbc4c876e46ede0d7480951ce65f08
6
+ metadata.gz: 35d2c570af65f9457741f7f054c72f6ae1078482fa4df62d0bf77a8152224f1fd68067a8440344cb25f9001bf767fd4531c8ddf826de8aedce43a8f2c3290cff
7
+ data.tar.gz: 24b37a3e73e585a6873e35abe56d52aba4b194f1e53dd528163424fd18c5e8e8b84cf83879d7060ee3398e9f91fe758d6039f900ff627a28a951dd2ade690719
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2017-08-20] - 2017-08-20
9
+ ### Added
10
+ - check-rabbitmq-amqp-alive.rb: Added threading and heartbeat interval options (@bdeo)
11
+
8
12
  ## [3.3.0] - 2017-08-20
9
13
  ### Added
10
14
  - check-rabbitmq-consumers.rb: Added ability to select queues with regular expressions. (@jtduby)
@@ -153,6 +157,7 @@ NOTE: this release changes the option flags in check-rabbitmq-node-health.rb to
153
157
  - Removed Rubygems require Ruby 1.8.7 backwards compatibility from all plugins
154
158
 
155
159
  [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-rabbitmq/compare/3.3.0...HEAD
160
+ [3.4.0]: https://github.com/sensu-plugins/sensu-plugins-rabbitmq/compare/3.3.0...3.4.0
156
161
  [3.3.0]: https://github.com/sensu-plugins/sensu-plugins-rabbitmq/compare/3.2.0...3.3.0
157
162
  [3.2.0]: https://github.com/sensu-plugins/sensu-plugins-rabbitmq/compare/3.1.1...3.2.0
158
163
  [3.1.1]: https://github.com/sensu-plugins/sensu-plugins-rabbitmq/compare/3.1.0...3.1.1
@@ -78,6 +78,18 @@ class CheckRabbitAMQPAlive < Sensu::Plugin::Check::CLI
78
78
  boolean: true,
79
79
  default: true
80
80
 
81
+ option :heartbeat,
82
+ description: 'Client heartbeat interval',
83
+ long: '--heartbeat HB',
84
+ proc: proc(&:to_i),
85
+ default: 0
86
+
87
+ option :threaded,
88
+ description: 'Enables threaded connections',
89
+ long: '--threaded THREAD',
90
+ boolean: true,
91
+ default: true
92
+
81
93
  option :ini,
82
94
  description: 'Configuration ini file',
83
95
  short: '-i',
@@ -103,6 +115,9 @@ class CheckRabbitAMQPAlive < Sensu::Plugin::Check::CLI
103
115
  tls_cert = config[:tls_cert]
104
116
  tls_key = config[:tls_key]
105
117
  no_verify_peer = config[:no_verify_peer]
118
+ heartbeat = config[:heartbeat]
119
+ threaded = config[:threaded]
120
+
106
121
  if config[:ini]
107
122
  ini = IniFile.load(config[:ini])
108
123
  section = ini['auth']
@@ -117,7 +132,9 @@ class CheckRabbitAMQPAlive < Sensu::Plugin::Check::CLI
117
132
  conn = Bunny.new("amqp#{ssl ? 's' : ''}://#{username}:#{password}@#{host}:#{port}/#{vhost}",
118
133
  tls_cert: tls_cert,
119
134
  tls_key: tls_key,
120
- verify_peer: no_verify_peer)
135
+ verify_peer: no_verify_peer,
136
+ heartbeat: heartbeat,
137
+ threaded: threaded)
121
138
  conn.start
122
139
  conn.close if conn.connected?
123
140
  { 'status' => 'ok', 'message' => 'RabbitMQ server is alive' }
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SensuPluginsRabbitMQ
2
4
  module Version
3
5
  MAJOR = 3
4
- MINOR = 3
6
+ MINOR = 4
5
7
  PATCH = 0
6
8
 
7
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors