riemann-tools-dgvz 0.2.2.2 → 0.2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/riemann-rabbitmq +18 -1
  2. metadata +1 -1
data/bin/riemann-rabbitmq CHANGED
@@ -57,6 +57,11 @@ class Riemann::Tools::Rabbitmq
57
57
  req.options[:timeout] = options[:read_timeout]
58
58
  req.options[:open_timeout] = options[:open_timeout]
59
59
  end
60
+ report(:host => event_host,
61
+ :service => "rabbitmq monitoring",
62
+ :state => 'ok',
63
+ :description => "Monitoring operational"
64
+ )
60
65
  rescue => e
61
66
  report(:host => event_host,
62
67
  :service => "rabbitmq monitoring",
@@ -106,7 +111,13 @@ class Riemann::Tools::Rabbitmq
106
111
  errs << "Queue has #{queue['messages_ready']} jobs"
107
112
  end
108
113
 
109
- unless errs.empty?
114
+ if errs.empty?
115
+ report(:host => event_host,
116
+ :service => svc,
117
+ :state => "ok",
118
+ :description => "Queue is looking good"
119
+ )
120
+ else
110
121
  report(:host => event_host,
111
122
  :service => svc,
112
123
  :state => "critical",
@@ -234,6 +245,12 @@ class Riemann::Tools::Rabbitmq
234
245
  )
235
246
  return
236
247
  end
248
+
249
+ report(:host => event_host,
250
+ :service => "rabbitmq.node.#{n}",
251
+ :state => "ok",
252
+ :description => "Node looks OK to me"
253
+ )
237
254
  end
238
255
  end
239
256
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-tools-dgvz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.2
4
+ version: 0.2.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: