sensu-plugins-mssql 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/check-mssql-lag.rb +1 -1
- data/lib/sensu-plugins-mssql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ea55783c59f9359ed910fb8a949bc86d50961ff
|
4
|
+
data.tar.gz: dc9f8175a9a09dd329837e81a0ffef0f119c8683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ff26db23e8bcf1339e177ff79f508a0973a351888f5219ea597e17161919928c5a74fd5a0d0607e8aed13e8a2b8e7714ca917fa63ae8aa6f0f7d93b1dd92d5
|
7
|
+
data.tar.gz: 323b563fb3a5b9a2521d4f6816f2652f3f359481eb54e2c4dfbedf0674e0b43f01fda5ae6079e9582db31cbb09e5b334121ae8085228b843c8497009657537f4
|
data/bin/check-mssql-lag.rb
CHANGED
@@ -94,7 +94,7 @@ class CheckMsSQLLag < Sensu::Plugin::Check::CLI
|
|
94
94
|
replica = TinyTds::Client.new(username: config[:user], password: config[:password],
|
95
95
|
host: config[:replica_host], database: config[:database],
|
96
96
|
port: config[:port])
|
97
|
-
sql = "SELECT TOP 1 DATEDIFF(SECOND, '1970-01-01', CreatedAt) As lag FROM [dbo].[
|
97
|
+
sql = "SELECT TOP 1 DATEDIFF(SECOND, '1970-01-01', CreatedAt) As lag FROM [dbo].[UserGeoLocationHistories] ORDER BY CreatedAt DESC;"
|
98
98
|
primary.execute(sql).each[0]['lag'] - replica.execute(sql).each[0]['lag']
|
99
99
|
end
|
100
100
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-mssql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|