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 +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/check-rabbitmq-amqp-alive.rb +18 -1
- data/lib/sensu-plugins-rabbitmq/version.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dd465aac9095a55b092e291e9db39204a4788c5
|
4
|
+
data.tar.gz: cd8aca106692da139aa6558ab507998c750281b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d2c570af65f9457741f7f054c72f6ae1078482fa4df62d0bf77a8152224f1fd68067a8440344cb25f9001bf767fd4531c8ddf826de8aedce43a8f2c3290cff
|
7
|
+
data.tar.gz: 24b37a3e73e585a6873e35abe56d52aba4b194f1e53dd528163424fd18c5e8e8b84cf83879d7060ee3398e9f91fe758d6039f900ff627a28a951dd2ade690719
|
data/CHANGELOG.md
CHANGED
@@ -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' }
|