sumo-check-sumo 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sumo-SumoMailEmail-metrics.rb +1 -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: 59cf38cc84eb6fe24f1253c8ac32a9899cc79057
|
4
|
+
data.tar.gz: d9ada7d3bf6f5236947e3d9c96d37fc11443c042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a08160a01084cff3d00eb6b5187e2cf08dea780e358e776fbfa5ae5ca364fa9e7789677f2b1cd9f2a6b427ce450198447e048f8f212a6bb961ecab2d97d8d5b9
|
7
|
+
data.tar.gz: dcd20220e7ff48c1403fb85e63040c6b80ad67176fd597ab27efc10fea268b8f272b9ec1d4823f32851adfb008034c8b95598f7ad1e5a69aae532c7812071610
|
@@ -17,7 +17,7 @@ class SumoMessageCenterMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
17
17
|
list_types = db.query("select DISTINCT email_list_type from SumoMailEmail;",:as => :array).to_a.flatten
|
18
18
|
list_types.each do |type|
|
19
19
|
metrics.each do |m|
|
20
|
-
result = db.query("SELECT count(id) FROM SumoMailEmail where state='#{m}' and email_list_type='#{type}';")
|
20
|
+
result = db.query("SELECT count(id) FROM SumoMailEmail where state='#{m}' and email_list_type='#{type}' and scheduled_for <= NOW() - INTERVAL 10 MINUTE;")
|
21
21
|
if result.count > 0
|
22
22
|
output "#{check_prefix_name}.#{type}.#{m}.count".tr(' ', '_'),result.first["count(id)"].to_i,Time.now.to_i
|
23
23
|
end
|