sumo-check-sumo 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sumo-check-SumoMailEmail.rb +1 -1
- data/bin/sumo-check-message-center.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: adf1e2c9cdccafad81eb8b531a47c1d1a3402361
|
4
|
+
data.tar.gz: cef889fd3d030a79af0609d03686d9cc25265f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19f8feeedaddf01b64c26c8722c03a607dc7eddcab744b0e48e3599b570eb11262afa968d34f3e9c005178715a7fbbdebefba1593b9db9a5f37c879e9be13090
|
7
|
+
data.tar.gz: 20d620fcec42c9a7dd60e1148357f01f299618ae7b25b868fedb009d6ecd0a669c1584c331ae13b391909d6de1766e49520e36bf84d5f923e6d25eb5c00951f1
|
@@ -31,7 +31,7 @@ class SumoSumoMailEmailCheck < Sensu::Plugin::Check::CLI
|
|
31
31
|
section = ini['client']
|
32
32
|
db = Mysql2::Client.new(:host => "127.0.0.1", :username => section['user'], :database => "sumome", :password => section['password'])
|
33
33
|
# pending_count = db.query("SELECT count(id) FROM SumoMailEmail where state='pending' and scheduled_for <= NOW() - INTERVAL #{config[:interval_value].to_i} MINUTE;").first["count(id)"].to_i
|
34
|
-
pending_count = db.query("SELECT count(id) FROM SumoMailEmail where state='pending').first["count(id)"].to_i
|
34
|
+
pending_count = db.query("SELECT count(id) FROM SumoMailEmail where state='pending';").first["count(id)"].to_i
|
35
35
|
|
36
36
|
case
|
37
37
|
when pending_count == 0
|
@@ -31,7 +31,7 @@ class SumoMessageCenterCheck < Sensu::Plugin::Check::CLI
|
|
31
31
|
section = ini['client']
|
32
32
|
db = Mysql2::Client.new(:host => "127.0.0.1", :username => section['user'], :database => "sumome", :password => section['password'])
|
33
33
|
# pending_count = db.query("SELECT count(id) FROM MessageCenterEmail where state='pending' and scheduled_for <= NOW() - INTERVAL #{config[:interval_value].to_i} MINUTE;").first["count(id)"].to_i
|
34
|
-
pending_count = db.query("SELECT count(id) FROM MessageCenterEmail where state='pending').first["count(id)"].to_i
|
34
|
+
pending_count = db.query("SELECT count(id) FROM MessageCenterEmail where state='pending';").first["count(id)"].to_i
|
35
35
|
|
36
36
|
case
|
37
37
|
when pending_count == 0
|