sumo-check-sumo 0.0.24 → 0.0.25

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: 8707d7e6bb47adb125050fc8af2186da6c2b4f5f
4
- data.tar.gz: 701d5dfcf3a3ccae58aaff49612cc483e11e66ed
3
+ metadata.gz: adf1e2c9cdccafad81eb8b531a47c1d1a3402361
4
+ data.tar.gz: cef889fd3d030a79af0609d03686d9cc25265f3e
5
5
  SHA512:
6
- metadata.gz: 9921dc67b0d5631d007087603281fa9e370c3f8d92d8c92eab16fdaa11b324e756a84f1e6ddc7fc77cd04bf244c985a25def41a766f97d7aa447ece5febe7c30
7
- data.tar.gz: 2677f073ed854ead19f15ef8dd1783964326ff24076ab3a1430e8e81f7ff68a4866636403a3bc0d143d334c227b79c53d048fc9d170ae66c032edb11c1ce9335
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumo-check-sumo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr. Ogg